我用IDirectSoundBuffer8::SetFrequency来改变声音的频率怎么不起作用,我设置的范围是在100hz - 100KHz之间,但是感觉频率一点没变化,
我还用到了改变音量的IDirectSoundBuffer8::SetVolume改变音量倒是能起作用,就是频率不变,声音效果一点没变,很奇怪,请达人指点,感激不尽!! 

解决方案 »

  1.   

    Before setting the frequency, you should ascertain whether the frequency is supported by checking the dwMinSecondarySampleRate and dwMaxSecondarySampleRate members of the DSCAPS structure for the device. Some operating systems do not support frequencies greater than 100,000 Hz.This method is not valid for the primary buffer.看看程序或者资源有没有以上的问题