chmod
chmod

Reputation: 1253

Using afconvert from iOS

Does anyone know if it is possible to convert a sound file in the Documents directory from within an app? I have a recorded sound file that will be available in iTunes File Sharing that I need to convert. Is afconvert available from within iOS?

Thanks

Upvotes: 1

Views: 1150

Answers (2)

Art Gillespie
Art Gillespie

Reputation: 8757

For what it's worth, afconvert is just a handy command-line interface to the features of the ExtAudioFile API which you can find in -- Using this API you can convert from any supported file format/audio format combination TO any supported file format/audio format combination.

Upvotes: 0

pmwood
pmwood

Reputation: 771

I'm not sure from what format to what format you want to convert to, but converting audio during runtime is not as simple as the command-line afconvert tool.

Check out Apple's sample projects iPhoneACFileConvertTest or ConvertFile. I think these would be good starting points if you want to convert audio in your app.

Upvotes: 0

Related Questions