• 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
ugh, still having issues with audio queues and audio streams
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ugh, still having issues with audio queues and audio streams


  • Subject: ugh, still having issues with audio queues and audio streams
  • From: John Zorko <email@hidden>
  • Date: Sat, 11 Oct 2008 13:53:23 -0700


Hello, all ...

I'm seeing a crash that happens when after I call AudioQueueStop().  Basically what seems to be happening is this:

1. an NSURLConnection received data and called AudioFileStreamParseBytes(), which calls my packets procedure
2. while inside said packets proc, AudioQueueStop() is called on another thread, making the memcpy() in my packets proc crash with EXC_BAD_ACCESS

I've tried solving this by putting a mutex inside of my packets proc that guards the whole function, and wait on the same mutex before I call AudioQueueStop(), but wow ... this gets rid of the crash, but makes stopping the audio take 10 seconds or more, because the data block sent to AudioFileStreamParseBytes() has like 500 packets in it or something, so it takes awhile to digest them.

What would be the best way to handle this?  Clearly i'm not understanding something, though i'm really trying.

Regards,

John

Falling You - exploring the beauty of voice and sound
http://www.fallingyou.com











 _______________________________________________
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: ugh, still having issues with audio queues and audio streams
      • From: William Stewart <email@hidden>
  • Prev by Date: Song Navigation with AudioQueueEnqueueBufferWithParameters
  • Next by Date: Re: Song Navigation with AudioQueueEnqueueBufferWithParameters
  • Previous by thread: Re: Song Navigation with AudioQueueEnqueueBufferWithParameters
  • Next by thread: Re: ugh, still having issues with audio queues and audio streams
  • Index(es):
    • Date
    • Thread