【发布时间】:2011-08-21 19:44:23
【问题描述】:
我使用了 avaudiorecoder 来录制用户的声音。它会记录它,但是当我播放它时,声音会噼啪作响。对此的任何帮助将不胜感激.....按照我的录音机设置的代码..
NSDictionary *recordSetting =[[NSDictionary alloc] initWithObjectsAndKeys:[NSNumber numberWithInt:kAudioFormatAppleIMA4],AVFormatIDKey,
[NSNumber numberWithInt:16000.0],AVSampleRateKey,
[NSNumber numberWithInt: 1],AVNumberOfChannelsKey,
[NSNumber numberWithInt:16],AVLinearPCMBitDepthKey,
[NSNumber numberWithBool:NO],AVLinearPCMIsBigEndianKey,
[NSNumber numberWithBool:NO],AVLinearPCMIsFloatKey,
[NSNumber numberWithInt:AVAudioQualityMax],AVEncoderAudioQualityKey,
nil];
【问题讨论】:
标签: iphone ios avaudioplayer avaudiorecorder