• 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
Re: Problem with AudioQueueEnqueueBufferWithParameters - bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with AudioQueueEnqueueBufferWithParameters - bug?


  • Subject: Re: Problem with AudioQueueEnqueueBufferWithParameters - bug?
  • From: Mark Woollard <email@hidden>
  • Date: Sun, 18 Nov 2007 19:51:01 +0000

Quick follow-up - the code has lost the '&' infront of volume - it does fail the same with it there...
Mark

On 18 Nov 2007, at 19:45, Mark Woollard wrote:

I'm trying to use the following fragment of code to queue audio buffers for playback. If I don't try and set the volume, as indicated by the comment, then I don't have any problems and audio plays perfectly. With the code as I get EXC_BAD_ACCESS from within the AudioQueueEnqueueBufferWithParameters call (actually within call to memcpy). Is there something wrong with my approach or is this a bug? Running on 10.5.1...

Thanks
Mark

    AudioQueueParameterEvent volume = {
        kAudioQueueParam_Volume,
        theVolume
    };
    
    AudioQueueEnqueueBufferWithParameters (mAudioQueue,
                             mAudioBuffers[ n ],
                             mAudioPackets[ n ],
                             &mAudioPacketDescs[ n ],
                             0, 0, 
     1, volume,  // 0, NULL, 
                             NULL, NULL);


 _______________________________________________
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

References: 
 >Problem with AudioQueueEnqueueBufferWithParameters - bug? (From: Mark Woollard <email@hidden>)

  • Prev by Date: Problem with AudioQueueEnqueueBufferWithParameters - bug?
  • Next by Date: Re: User-land CoreAudio driver and Leopard
  • Previous by thread: Problem with AudioQueueEnqueueBufferWithParameters - bug?
  • Next by thread: Realtion between callback count and audio file duration
  • Index(es):
    • Date
    • Thread