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

Problem with AudioQueueEnqueueBufferWithParameters - bug?


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

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

  • Follow-Ups:
    • Re: Problem with AudioQueueEnqueueBufferWithParameters - bug?
      • From: Mark Woollard <email@hidden>
  • Prev by Date: Re: 10.4.11 problems
  • Next by Date: Re: Problem with AudioQueueEnqueueBufferWithParameters - bug?
  • Previous by thread: Re: Problems with iTunes Plus files and ExtAudioFile API
  • Next by thread: Re: Problem with AudioQueueEnqueueBufferWithParameters - bug?
  • Index(es):
    • Date
    • Thread