• 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
Getting PCM data from MP3/AAC/ALAC File
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting PCM data from MP3/AAC/ALAC File


  • Subject: Getting PCM data from MP3/AAC/ALAC File
  • From: Daniel Staudigel <email@hidden>
  • Date: Wed, 17 Dec 2008 15:14:27 -0800

I am trying to get a PCM stream out of out of a generic audio file. So far, I have tried:

1) Opening it with AudioFile, then trying to pipe it through a the appropriate AudioConverter, using AudioBufferFillComplexBuffer. This fails either silently (when trying to play the PCM data), or crashes because of a buffer overrun during the conversion step

2) Opening it with ExtAudioFile with the Client format set to be the desired PCM data. This fails either by playing completely garbled noise (not white noise, which is what I'd expect if it were playing MP3/AAC data as if it were PCM), or by playing nothing, or crashing in a similar buffer-overrun situation as above.

Poking around the lists I saw a reference to an old piece of sample code (ConvertFile?) that I can't get ahold of anymore. Does anybody have this, or something similar?

This seems like it should be easy. I am not familiar with CoreAudio or AudioToolbox, but I've spent enough hours on this that I am reaching out for help!

Cheers,

Daniel Staudigel
_______________________________________________
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: Getting PCM data from MP3/AAC/ALAC File
      • From: Daniel Staudigel <email@hidden>
  • Prev by Date: Re: PlaySoftMidi change instrument
  • Next by Date: Re: Getting PCM data from MP3/AAC/ALAC File
  • Previous by thread: Re: PlaySoftMidi change instrument
  • Next by thread: Re: Getting PCM data from MP3/AAC/ALAC File
  • Index(es):
    • Date
    • Thread