开发者社区 问答 正文

iOS中AVPlayer系列怎么取得音频采样数据?

如题,AVFoundation.framework中多了一组类,AVPlayer,AVPlayerItem等。有没有什么巧办法通过这些类取得采样数据?

展开
收起
a123456678 2016-07-20 14:40:21 2699 分享 版权
1 条回答
写回答
取消 提交回答
  •     AVAudioPlayer *player = [[AVAudioPlayer alloc] initWithContentsOfURL:fileUrl error:&error];
        float sampleRate = [[player.settings valueForKey:AVSampleRateKey] floatValue];
    2019-07-17 19:58:51
    赞同 展开评论
问答分类:
问答标签:
问答地址: