Skip to content
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

Open
abkPhysics opened this issue Aug 25, 2013 · 4 comments
Open

abilty to write audio to a file #2511

abkPhysics opened this issue Aug 25, 2013 · 4 comments

Comments

@abkPhysics
Copy link

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.

@admsyn
Copy link
Member

admsyn commented Aug 26, 2013

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 :)

@abkPhysics
Copy link
Author

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.

@admsyn
Copy link
Member

admsyn commented Aug 26, 2013

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).

@bilderbuchi
Copy link
Member

👍 to admsyn's assessment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants