• 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: OpenAL and file size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: OpenAL and file size
      • From: Chunk 1978 <email@hidden>
References: 
 >OpenAL and file size (From: Chunk 1978 <email@hidden>)

  • Prev by Date: Re: Use of AudioQueue buffers in case of sound synthesis
  • Next by Date: Re: OpenAL and file size
  • Previous by thread: OpenAL and file size
  • Next by thread: Re: OpenAL and file size
  • Index(es):
    • Date
    • Thread