• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AudioQueueEnqueueBuffer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: AudioQueueEnqueueBuffer
      • From: "Hamish Allan" <email@hidden>
  • Prev by Date: Re: Assert Failure for AUListenerAddParameter
  • Next by Date: Re: Assert Failure for AUListenerAddParameter
  • Previous by thread: Re: OSX 10.5.6 breaks our user-land driver...
  • Next by thread: Re: AudioQueueEnqueueBuffer
  • Index(es):
    • Date
    • Thread