Iphone 使用AVAudioRecorder录制WAV格式文件?

Iphone 使用AVAudioRecorder录制WAV格式文件?,iphone,ios,avaudiorecorder,Iphone,Ios,Avaudiorecorder,我正在尝试使用以下设置使用AVAudiorecorder录制wav文件。创建的文件在我的mac和iPhone上可以正常播放,但当我将其发送到blackberry设备并尝试从那里播放时,它表示不支持该格式。。我可能做错了什么?? 我相信我在初始化录音机的设置时遗漏了一些东西,所以我只发布设置字典 NSDictionary *settings = [[NSDictionary alloc] initWithObjectsAndKeys:

我正在尝试使用以下设置使用AVAudiorecorder录制wav文件。创建的文件在我的mac和iPhone上可以正常播放,但当我将其发送到blackberry设备并尝试从那里播放时,它表示不支持该格式。。我可能做错了什么?? 我相信我在初始化录音机的设置时遗漏了一些东西,所以我只发布设置字典

NSDictionary *settings = [[NSDictionary alloc] initWithObjectsAndKeys:
                                 [NSNumber numberWithFloat: 44100.0],AVSampleRateKey,
                                 [NSNumber numberWithInt: kAudioFormatLinearPCM],AVFormatIDKey,// kAudioFormatLinearPCM
                                 [NSNumber numberWithInt:16],AVLinearPCMBitDepthKey,
                                 [NSNumber numberWithInt: 2], AVNumberOfChannelsKey,
                                 [NSNumber numberWithBool:NO],AVLinearPCMIsBigEndianKey,
                                 [NSNumber numberWithBool:NO],AVLinearPCMIsFloatKey,  
                                 [NSNumber numberWithInt: AVAudioQualityMedium],AVEncoderAudioQualityKey,nil];

链接可以对你有帮助链接可以对你有帮助