I would like to make it very simple: play PCM audio data from memory.
Audio samples will come from sound synthesis algorithms, pre-loaded sample files, or something else. My question is how to play buffers, not how to fill them with data.
So, I'm looking for a better way to repurpose an old, obsolete AudioWrapper (which was based on AudioUnits V1), but I could not find in the Apple Documentation API that would do the following:
- Compatible from 10.5 to 10.7.
- Available on ios.
- Does not rely on a third-party library.
- Future proof (for example: not based on Carbon, 64 bit ...).
I am considering using OpenAL, but is this really the best option? I have seen negative reviews about this, it can be too complicated and excessive, and can add overhead to performance?
In the worst case, I could have two different implementations of this AudioWrapper, but if possible, I would really like for you to not have one version for each system (ios, 10.5, 10.6, 10.7 ...). In addition, it will be in C ++.
EDIT: I need good latency, the system should respond to user interactions in less than 20 ms (buffers should be between 128 and 512 samples at 44 kHz)
source share