如何解决如何在iOS 14 Objective C中录制立体声
如何在iOS 14 Objective C中录制立体声
这是我的代码,我现在不打算将 AVAudioSessionPolarPatternStere o添加到我的代码中 我找到了Swift的简单代码,但是我需要添加目标c代码
AVAudioSession * audioSession = [AVAudioSession sharedInstance];
const AVAudioSessionPolarPattern AVAudioSessionPolarPatternStereo;
[audioSession setCategory:AVAudioSessionCategoryPlayAndRecord error:nil];
[audioSession setActive:YES error:nil];
NSMutableDictionary* recordSetting = [[NSMutableDictionary alloc] init];
[recordSetting setValue :[NSNumber numberWithInt:kAudioFormatMPEG4AAC] forKey:AVFormatIDKey];
[recordSetting setValue:[NSNumber numberWithFloat:44100.0] forKey:AVSampleRateKey];
[recordSetting setValue:[NSNumber numberWithInt: 2] forKey:AVNumberOfChannelsKey];
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。