0
我有一個視頻錄製視頻,然後我有一個AVAudioPlayer節,問題是,當聲音,你停止註冊視頻。雖然播放聲音並沒有停止錄製Avcapture
testAudioPlayer = [[AVAudioPlayer alloc] initWithData:sampleData error:&audioError];
[sampleData release];
if(audioError != nil) {
NSLog(@"An audio error occurred: \"%@\"", audioError);
}
else {
[testAudioPlayer setVolume:100];
[testAudioPlayer setNumberOfLoops: -1];
[testAudioPlayer play];``
在此先感謝
我從另一個職位搜索,但我不知道在哪裏刪除代碼,請幫助我!我想通了:我只需刪除AVCam中分配AVCaptureDeviceInput - audioInput的一些代碼。這是不必要的,並與我的音頻回放代碼衝突 – user1178728 2012-02-14 18:59:50