首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > 多媒体 >

怎么通过IDirectSound接口对象调整音量大小

2012-02-16 
如何通过IDirectSound接口对象调整音量大小?我已经通过hook dsound.dll 中的 DirectSoundCreate方法貌似得

如何通过IDirectSound接口对象调整音量大小?
我已经通过hook dsound.dll 中的 DirectSoundCreate方法貌似得到了IDirectSound接口对象,请教各位大侠如何通过IDirectSound接口对象调整音量大小呢?

[解决办法]
要拿到IDirectSoundBuffer才能控制音量。

要注意的是,这个音量是软件音量,不是你在系统音量控制那边看到的东西。音量控制里的东西XP以前的是用mixer调整,从Vista开始就是用Endpoint那套东西了。

热点排行