Re: OpenAL and file size
Re: OpenAL and file size
- Subject: Re: OpenAL and file size
- From: David Duncan <email@hidden>
- Date: Sun, 31 Jan 2010 09:09:47 -0800
On Jan 31, 2010, at 9:03 AM, Chunk 1978 wrote:
> i've tried using instruments to see how much space the file was
> allocating and was surprised to see that the 6MB .mp3 files was
> allocating close to 100MB of memory. i believe this is because .mp3s
> are compressed and openAL uncompresses files. how is it possible to
> load a file this size into OpenAL on the iPhone. should the file be
> converted?
You need to load and decompress pieces of the file as you go. However, I can't imagine that you need to actually process a 6MB MP3 file through OpenAL - why not just play it with an AVAudioPlayer while other audio plays over it?
If you do need to process it, then you should look into Exteneded Audio File.
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.
David Duncan
_______________________________________________
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