• 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: SoundConverterFillBuffer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SoundConverterFillBuffer


  • Subject: Re: SoundConverterFillBuffer
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 24 Oct 2005 09:59:21 -0700


On 24 Oct '05, at 8:47 AM, nugen wrote:

i'm using SoundConverterFillBuffer function for converting audio buffers (mp3 to pcm for example).

I found that performance are really low comparing to just load a movie (mp3) and play it. I suppose that Quicktime has to decode too the audio before playing... No?

I can't comment on the performance, but that function is part of the old deprecated Sound Manager API. You should be using CoreAudio instead. 

If you just need to decode MP3 samples, look at <AudioToolkit/ExtendedAudioFile.h>, which has a very simple API for doing that. (You call ExtAudioFileOpen, ExtAudioFileSetProperty to set the client data format to PCM, then ExtAudioFileRead to read the samples.) I've been using this for playing back MP3 files and the performance is at least as good as using QuickTime or iTunes.

--Jens
 _______________________________________________
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: 
 >SoundConverterFillBuffer (From: "nugen" <email@hidden>)

  • Prev by Date: SoundConverterFillBuffer
  • Next by Date: Re: Efficient functions to convert 24 bit WAV audio into Float32
  • Previous by thread: SoundConverterFillBuffer
  • Next by thread: Getting the description of an AUHAL output node
  • Index(es):
    • Date
    • Thread