Re: AudioQueueEnqueueBuffer
Re: AudioQueueEnqueueBuffer
- Subject: Re: AudioQueueEnqueueBuffer
- From: "Hamish Allan" <email@hidden>
- Date: Tue, 6 Jan 2009 15:30:58 +0000
On Tue, Jan 6, 2009 at 3:15 PM, Han, Yushen <email@hidden> wrote:
> 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.
Hi Yushen Han,
The Audio Queue Services Reference describes the AudioQueueBuffer data
structure. When you call AudioQueueNewOutput, pass an
AudioStreamBasicDescription for PCM, then just fill your
AudioQueueBuffers' mAudioData and set their mAudioDataByteSize
accordingly.
Hamish
_______________________________________________
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