hoene / libmysofa

Reader for AES SOFA files to get better HRTFs
Other
131 stars 70 forks source link

add "outfile" option to mysofa2json #217

Closed umlaeute closed 2 months ago

umlaeute commented 9 months ago

would it be possible to add a -o <outfile.json> option to mysofa2json?

mysofa2json -c -o x.json tests/Mesh2HRTF.sofa

i know it is easy enough to just redirect the output to a file (mysofa2json -c tests/Mesh2HRTF.sofa > x.json), however:

the context of this request is running the test-suite in verbose mode without dumping 200MB of JSON data to the console.

/usr/bin/ctest --force-new-ctest-process --verbose -j1

you might say, that if i do not want to get verbose output, i should probably not add the --verbose flag in the first place, but of course things are always more complicated: