Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

yaniv92648

macrumors member
Original poster
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.