openal

iOS: Audio Units vs OpenAL vs Core Audio

Could someone explain to me how OpenAL fits in with the schema of sound on the iPhone? There seem to be APIs at different levels for handling sound. The higher level ones are easy enough to understand. But my understanding gets murky towards the bottom. There is Core Audio, Audio Units, OpenAL. What is the connection between these? ...

OpenAL on Mac OS X: Setting AL_SAMPLE_OFFSET does nothing

Hi, at work, we're unable to use alSourcePause() to pause sounds, and in any case we might want to start the sound with an offset. We're performing a "resume" by doing alSourcei(this->sourceId, AL_SAMPLE_OFFSET, this->sampleOffset); with a sample offset that we retrieved with alGetSourcei(). We tried using AL_SEC_OFFSET, AL_BYTE_OFFSET...

Cocoa Speech Synthesis, save Audio to a buffer for use in OpenAL

Hi, I want to translate text to audio on osx similar as done here: http://developer.apple.com/library/mac/#samplecode/CocoaSpeechSynthesisExample/Introduction/Intro.html . After the sound is finished playing I would like to save it to a buffer for further use in openAL, is that possible? The only way I see right now is to save the spe...

OpenAL streaming buffers not detaching from source

I'm doing iOS development and trying to reuse a stopped OpenAL streaming source for another streaming sound, but sometimes the source is showing AL_BUFFERS_PROCESSED remaining even after it's been stopped and cleared. I'm using the following code: alSourceStop(source_id); alSourcei(source_id, AL_BUFFER, AL_NONE); ALint buffers_process...