为什么我的 WASAPI 侦听器即使在没有播放时也会触发?

Why does my WASAPI listener fire even when nothing is playing?

WASAPI 被记录为在没有播放任何声音的情况下不发送音频数据,例如this note about WASAPI in NAudio:

Now there is one gotcha with WasapiLoopbackCapture. If no audio is playing whatsoever, then the DataAvailable event won't fire. So if you want to record "silence", one simple trick is to simply use an NAudio playback device to play silence through that device for the duration of time you're recording. Alternatively, you could insert silence yourself when you detect gaps in the incoming audio.

我写了一个 WASAPI 侦听器,但在我的机器上,它总是触发 即使没有任何声音。其他用户确实报告说,当没有播放时,信号停止。

所以我认为一定是某个进程让 Windows 认为我的机器上正在播放某些东西,但我不知道它是什么。

如何找到这个幻音的来源?

这不是一个很好的答案,但是当我重新启动时,问题就消失了。我假设某些应用程序(如 Spotify)正在播放某些内容,即使它听不见。