2016-05-23 3 views
1

私はAVAudioRecorderとAVAudioPlayerを使ってオーディオを録音し、再生しています。 AVAudioPlayerにオーディオを挿入するには、マーカーを配置して特定の時間を設定します。誰も私にこれをする方法を助けることができますか?オーディオファイルを分割する

答えて

0

ことは、これを試してみてください:

-(void)Play 
{ 
    AVAudioPlayer *avPlayer = [[AVAudioPlayer alloc]initWithContentsOfURL:[NSURL fileURLWithPath:[FileDetailsRec valueForKey:@"Path"]] error:nil]; 
    [avPlayer setCurrentTime:5.01f]; 
    [avPlayer prepareToPlay]; 
    [avPlayer play]; 
    objTimer = [NSTimer scheduledTimerWithTimeInterval:1.07f target:self selector:@selector(stop) userInfo:nil repeats:NO]; 
} 

-(void)stop 
{ 
    [objTimer invalidate]; 
    [avPlayer stop]; 
} 

私は主音声を分割し、新しいオーディオを挿入したいことが

https://documentation.apple.com/en/soundtrackpro/usermanual/index.html#chapter=6%26section=18%26tasks=true

+0

..あなたを助け、願っています....一度これを確認してください。 –