Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以以某种方式从 AVPlayer 中提取队列,因为可以从队列中提取诸如 AudioQueueLevelMeterState 之类的对象,或有关通道号、子级仪表的信息,以便在播放声音时在场景上绘制一些漂亮的动画,在此先感谢。
AVPlayer高于AudioQueue. AudioQueueLevelMeterState只提供mPeakPower和mAveragePower。
AVPlayer
AudioQueue
AudioQueueLevelMeterState
mPeakPower
mAveragePower
如果您想要一个漂亮动画的详细值,您需要深入到捕获的音频缓冲区本身的实际浮点或整数值。