录制时间是不准确的,

    timer = [NSTimerscheduledTimerWithTimeInterval:0.1ftarget:selfselector:@selector(updateMeters) userInfo:nilrepeats:YES];

   [recorderupdateMeters];

    curCount += 0.1f;

 

我的小timer啊,用下面这个自己计算吧,录制完后,

  AVAudioPlayer *player = [[AVAudioPlayeralloc]initWithContentsOfURL:[NSURLURLWithString:_filePath]error:Nil];

    TTLog(@"%f",player.duration);

posted @ 2014-01-22 10:41  路在脚下,  阅读(159)  评论(0编辑  收藏  举报