更新时间:2022-01-11 22:22:42
DirectX(DirectSound)应该是WindowXP的一个很好的解决方案。您需要创建一个过滤器(请参阅DirectX的示例,有几个过滤器示例),然后确保使用包含过滤器的图表播放声音。
您的过滤器必须提供有关频率和强度的信息。
一些过滤器示例:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd375468 (v = vs.85).aspx [ ^ ]
请参阅范围过滤器示例,它是声音的WaveForm表示,接近你想要的。
DirectX (DirectSound) should be a good solution for WindowXP. You need to create a Filter (see the examples of DirectX, there are a couple of filter examples) and then make sure sounds are being played using a graph that includes your filter.
Your filter must then provide information about fequencies and strength.
Some filter examples :
http://msdn.microsoft.com/en-us/library/windows/desktop/dd375468(v=vs.85).aspx[^]
See the 'Scope Filter Example' which is a WaveForm representation of your sound, which comes close to what you want.