Re: SoundConverterFillBuffer
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