Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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

— asked August 9th 2010 by Scott Robinson
  • audio
  • compression
  • fileformat
  • iphone
  • recording
0 Comments

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! :)

    — answered August 27th 2010 by Scott Robinson
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.