Reputation: 5546
I am retrieving an MP3 file from the iPod Library and saving it to the application's Documents directory. I need to convert it to .wav or .caf so that I can use OpenAL or any other library to change the pitch of the audio.
Can this be done? Any assistance with code will be greatly appreciated.
Upvotes: 1
Views: 2523
Reputation: 614
Take a look at the AVAssetWriter class. Also, check out this link, its not exactly what you want, but its a start.
Note that it might be difficult to gain access to the user's actual file as that would require reaching out of your app's sandbox - something Apple doesn't allow.
Upvotes: 1