Re: What's involved streaming audio to disk as mp3 in iOS
Re: What's involved streaming audio to disk as mp3 in iOS
- Subject: Re: What's involved streaming audio to disk as mp3 in iOS
- From: tahome izwah <email@hidden>
- Date: Fri, 13 Jul 2012 11:58:25 +0200
CA / iOS has no support for MP3 encoding, so you will have to use a 3rd party library such as L.A.M.E. (
lame.sourceforge.net) which appears to be free.
HTH
--th
2012/7/12 Chris Adamson
<email@hidden>
Haven't looked, but I wouldn't assume that AudioFileWritePackets is going to write to an MP3 file -- with no MP3 encoder in Core audio, and since .mp3 files can only contain MP3 payloads, there'd be no point in AudioFile supporting MP3 output. Possible that you could write to a .caf, but your other messages in this thread make me think that'll be a nonstarter for you.
--Chris
On Jul 12, 2012, at 12:22 PM, Morgan Packard wrote:
I understand I'll have to come up with my own encoder. LAME is an option. Any non-GPL options I should be aware of?
Once I get an appropriate encoder, I'll need to write the data to disk. Is AudioFileWritePackets the way to go here? Anything nice like ExtAudioFileWriteAsync that I can use that will handle the ring-buffering of the sound so I'm not writting to disk from my audio thread?
_______________________________________________
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
_______________________________________________
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