New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
abilty to write audio to a file #2511
Comments
Hi @abkPhysics. You're correct that that isn't a feature we have already. It's definitely something that could be useful. There's a sound refactor in progress that's going to add the ability to write a WAV file (since the file format is simple). The trick with writing something like mp3 isn't so much technical a issue as it is a licensing one. This means that we'd most likely have to write platform-specific encoding functions, and have to split up the feature list per-OS, probably include separate libs for each OS and etc etc. Since openFrameworks is much more focussed on realtime than offline, it means that this sort of functionality is probably better suited to an addon than something directly in the core. See ofxLibsndfileRecorder for instance (note that libsndfile is LGPL). I'll leave this open until the sound refactor is merged, however. If anyone has ideas on how to solve this in a cross-platform way without licensing issues and significant code/lib weight, I'm all ears :) |
I was not sure how fast compressing and decompressing audio is. I thought mp3 could be useful in realtime. Like if you have to send sound data over a network it will take less space. |
While something like that would certainly be useful in some circumstances, it is still something better left to an addon due to the complexity, licensing issues, and the fact that it would be a fairly significant maintenance responsibility for functionality which is not crucial in the openFramworks core (imo). |
👍 to admsyn's assessment. |
I don't see anything for any ability to record audio to disk. This could be useful for many audio applications. I think wav,aiff, mp3 should all be supported.
The text was updated successfully, but these errors were encountered: