4
我已經使用avaudiorecoder錄製了用戶的聲音。它會記錄它,但是當我播放它時,聲音會被crack斷。任何有關這方面的幫助將不勝感激.....按照我的記錄器設置的代碼..avaudiorecorder錄音後播放時發生扭曲聲音
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];
謝謝,它幫助。 – Saleh 2011-06-03 08:07:46