Objective c 使用SimpleAudioEngine和avaudioRecorder
我知道我不能在Objective c 使用SimpleAudioEngine和avaudioRecorder,objective-c,cocos2d-iphone,simpleaudioengine,Objective C,Cocos2d Iphone,Simpleaudioengine,我知道我不能在avaudioRecorder之前使用SimpleAudioEngine,因为它将会话设置为播放而不是录制 如果我用录音机录音,然后播放: [[SimpleAudioEngine sharedEngine] playEffect:soundFilePath pitch:2.0f pan:0.0f gain:1.0f]; 它工作得很好,但如果我想再录制一次,那就不是了 我必须使用SimpleAudioEngine,我正在寻找一种方法,让它在我播放后再次录制 我试着在玩过之后做:
avaudioRecorder
之前使用SimpleAudioEngine
,因为它将会话设置为播放而不是录制
如果我用录音机录音,然后播放:
[[SimpleAudioEngine sharedEngine] playEffect:soundFilePath pitch:2.0f pan:0.0f gain:1.0f];
它工作得很好,但如果我想再录制一次,那就不是了
我必须使用SimpleAudioEngine
,我正在寻找一种方法,让它在我播放后再次录制
我试着在玩过之后做:
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayAndRecord error:nil];
没有成功
有什么帮助吗
谢谢。你想要像汤姆一样说话的东西吗?