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.
有没有办法订阅周期性事件以从音频输出中获得减少的样本?我想设计一个音量计,我不想使用计时器。我只需要音量指示器上的视觉反馈。
其他解决方案将受到欢迎。
MeteringSampleProvider为此,您可以使用 a 。正如文档所说:
MeteringSampleProvider
简单的 SampleProvider,它通过音频未更改,并每隔 n 个样本引发一个事件,该事件具有周期中的最大样本值,用于计量目的