• 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 17:56:06 -0700


On 31 Mar '08, at 4:46 PM, I wrote:

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.

Never mind! I finally tracked this down to an obscure bug in my audio buffering code; it was triggered because ADTS packet info tables start with mStartOffset=7, and my code did the wrong thing if it wasn't zero.


I can now successfully downconvert audio files to ADTS 128kbps, stream them to the other end of the socket, and play them there. Yay!

(This still doesn't explain why AudioFile barfs on ADTS, but I'm not using it for that in my real app, so it's not my problem...)

—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

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

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