Category : audiotoolbox

I’ve written a small c++ app for testing AudioToolbox Queue. I am filling the buffer with some random data just to check it works. static void HandleOutputBuffer(void* inUserData, AudioQueueRef queue, AudioQueueBufferRef inBuffer) { memset(inBuffer->mAudioData, rand() % 256, inBuffer->mAudioDataByteSize); throwExceptionIfError(AudioQueueEnqueueBuffer(queue, inBuffer, 0, NULL)); } int main(int argc, const char * argv[]) { AudioQueueRef queue; AudioStreamBasicDescription format ..

Read more