Hi,
i'm currently recording in 'alac' AVFormatIDKey and it works fine, but because of the encoding of the file i can't play it in my computer. i tried recording in another AVFormatIDKey but with no success.
[recordSetting setValue:[NSNumber numberWithInt:'alac'] forKey:AVFormatIDKey];
[recordSetting setValue:[NSNumber numberWithFloat:96000.0] forKey:AVSampleRateKey];
[recordSetting setValue:[NSNumber numberWithInt:2] forKey:AVNumberOfChannelsKey];
if i change AVFormatIDKey for example like this:
[recordSetting setValue:[NSNumber numberWithInt:'lpcm'] forKey:AVFormatIDKey];
do i need another change in AVSampleRateKey or AVNumberOfChannelsKey or something else?
Thank you.
i'm currently recording in 'alac' AVFormatIDKey and it works fine, but because of the encoding of the file i can't play it in my computer. i tried recording in another AVFormatIDKey but with no success.
[recordSetting setValue:[NSNumber numberWithInt:'alac'] forKey:AVFormatIDKey];
[recordSetting setValue:[NSNumber numberWithFloat:96000.0] forKey:AVSampleRateKey];
[recordSetting setValue:[NSNumber numberWithInt:2] forKey:AVNumberOfChannelsKey];
if i change AVFormatIDKey for example like this:
[recordSetting setValue:[NSNumber numberWithInt:'lpcm'] forKey:AVFormatIDKey];
do i need another change in AVSampleRateKey or AVNumberOfChannelsKey or something else?
Thank you.