• 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: AudioFileStream unable to read m4a data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioFileStream unable to read m4a data


  • Subject: Re: AudioFileStream unable to read m4a data
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 31 Mar 2008 16:46:17 -0700


On 31 Mar '08, at 3:25 PM, I wrote:

However, my app can't play them, and neither can the AudioQueueTools sample.

My app's actually failing differently than the sample code. It plays about 1/2 second of audio, then stops; the app's still running, but my AudioQueue's buffer callback is never invoked again.


When I sample the app, I see the AudioQueue thread spending some of its time throwing/catching C++ exceptions. So I set a breakpoint at __cxa_throw, and got this backtrace:

#0 0x95cbc201 in __cxa_throw ()
#1 0x0f050ddd in dyld_stub_vsnprintf ()
#2 0x0f050ced in dyld_stub_vsnprintf ()
#3 0x0f046dde in dyld_stub_vsnprintf ()
#4 0x943b85cd in CallComponentDispatch ()
#5 0x93f9eb6d in AudioCodecAppendInputData ()
#6 0x92fa51aa in CodecConverter::DecoderFillBuffer ()
#7 0x92f99d61 in BufferedAudioConverter::GetInputBytes ()
#8 0x92f99c1d in CBRConverter::RenderOutput ()
#9 0x92f9998c in BufferedAudioConverter::FillBuffer ()
#10 0x92f99b14 in AudioConverterChain::RenderOutput ()
#11 0x92f9998c in BufferedAudioConverter::FillBuffer ()
#12 0x92faf323 in AudioConverterFillComplexBuffer ()
#13 0x93049139 in AudioQueueObject::ConvertOutput ()
#14 0x9304a7ad in AudioQueueObject::RunConverter ()
#15 0x9304a9eb in AQConverterManager::AQConverterThread::Run ()
#16 0x9304ac01 in AQConverterManager::AQConverterThread::ConverterThreadEntry ()
#17 0x9302a7f1 in CAPThread::Entry ()
#18 0x92bccc55 in _pthread_start ()
#19 0x92bccb12 in thread_start ()


So it looks like the codec is failing internally; it does return back to the AudioQueue (the sample shows that) but somehow the queue never gives up and fetches another buffer.

Nothing's being logged to the console, and GDB won't disassemble frames 1-3, so I can't tell what was called just before the throw.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: AudioFileStream unable to read m4a data
      • From: Jens Alfke <email@hidden>
References: 
 >AudioFileStream unable to read m4a data (From: Jens Alfke <email@hidden>)
 >Re: AudioFileStream unable to read m4a data (From: Jens Alfke <email@hidden>)
 >Re: AudioFileStream unable to read m4a data (From: Stephen Davis <email@hidden>)
 >Re: AudioFileStream unable to read m4a data (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: AudioFileStream unable to read m4a data
  • Next by Date: Re: ExtAudioFileCreateNew questions
  • Previous by thread: Re: AudioFileStream unable to read m4a data
  • Next by thread: Re: AudioFileStream unable to read m4a data
  • Index(es):
    • Date
    • Thread