AudioQueueEnqueueBuffer
AudioQueueEnqueueBuffer
- Subject: AudioQueueEnqueueBuffer
- From: "Han, Yushen" <email@hidden>
- Date: Tue, 6 Jan 2009 10:15:14 -0500
Hello,
I have a question about AudioQueueEnqueueBuffer() in Audio Queue Service.
I simply want to play audio in memory instead of from an audio file.
In my callback function, there is no AudioFileReadPackets() since I do
not open an audio file.
I want to fill in the buffer with the audio data (the simplest PCM
samples) by myself.
But I am not what should I do for AudioQueueEnqueueBuffer() in my
callback function.
I read
http://developer.apple.com/documentation/MusicAudio/Conceptual/AudioQueueProgrammingGuide/AQPlayback/chapter_4_section_3.html#//apple_ref/doc/uid/TP40005343-CH3-SW2
AudioQueueEnqueueBuffer should be
OSStatus AudioQueueEnqueueBuffer (
AudioQueueRef inAQ,
AudioQueueBufferRef inBuffer,
UInt32 inNumPacketDescs,
const AudioStreamPacketDescription *inPacketDescs
);
but it did not say much about what this function should do to inAQ, inBuffer,
which is what I want to implement by myself.
Does anyone have any idea? Thanks!
Best regards,
Yushen Han
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden