Audio Compression / File Format
Hi Folks,
Any ideas why the below might be crashing my app? Using the default settings provided in the kitchen sink seem to work fine!
recording.compression = Ti.Media.AUDIO_FORMAT_AAC;
recording.format = Ti.Media.AUDIO_FILEFORMAT_MP4;
OR
recording.compression = Ti.Media.AUDIO_FORMAT_AAC;
recording.format = Ti.Media.AUDIO_FILEFORMAT_MP4A;
Cheers!
Scott
1 Answer
-
If anyone else comes across this wondering the same…
I was testing on an iPhone 3G which dosent support AAC encoding. It just crashes when trying to encode in AAC! Apparently the phone cant handle encoding audio in AAC in realtime! (the 3GS and 4 can). Im using AUDIO_FORMAT_APPLE_LOSSLESS and AUDIO_FILEFORMAT_MP4A instead which works lovely! :)