D donghaiw Unregistered / Unconfirmed GUEST, unregistred user! 2003-04-16 #1 如何实时检测声卡此时的音量大小? 小D正在在写一个程序需要获得当前的音量大小, 注意:不是音量控制器的值.谢了
C cwmdelpher Unregistered / Unconfirmed GUEST, unregistred user! 2003-04-16 #2 function waveOutSetVolume(hwo: HWAVEOUT; dwVolume: DWORD): MMRESULT; stdcall; function waveOutGetErrorTextA(mmrError: MMRESULT; lpText: PAnsiChar; uSize: UINT): MMRESULT; stdcall; function midiOutSetVolume(hwo: HWAVEOUT; dwVolume: DWORD): MMRESULT; stdcall; function midiOutGetErrorTextA(mmrError: MMRESULT; lpText: PAnsiChar; uSize: UINT): MMRESULT; stdcall; function auxSetVolume(hwo: HWAVEOUT; dwVolume: DWORD): MMRESULT; stdcall; function auxGetErrorTextA(mmrError: MMRESULT; lpText: PAnsiChar; uSize: UINT): MMRESULT; stdcall; waveOutSetVolume(hwo: HWAVEOUT; dwVolumeWORD) dwVolume --- 音量大小 HWORD---Left volume LWORD--Right volume
function waveOutSetVolume(hwo: HWAVEOUT; dwVolume: DWORD): MMRESULT; stdcall; function waveOutGetErrorTextA(mmrError: MMRESULT; lpText: PAnsiChar; uSize: UINT): MMRESULT; stdcall; function midiOutSetVolume(hwo: HWAVEOUT; dwVolume: DWORD): MMRESULT; stdcall; function midiOutGetErrorTextA(mmrError: MMRESULT; lpText: PAnsiChar; uSize: UINT): MMRESULT; stdcall; function auxSetVolume(hwo: HWAVEOUT; dwVolume: DWORD): MMRESULT; stdcall; function auxGetErrorTextA(mmrError: MMRESULT; lpText: PAnsiChar; uSize: UINT): MMRESULT; stdcall; waveOutSetVolume(hwo: HWAVEOUT; dwVolumeWORD) dwVolume --- 音量大小 HWORD---Left volume LWORD--Right volume
D donghaiw Unregistered / Unconfirmed GUEST, unregistred user! 2003-08-24 #4 我的意思是声音的峰值,即peak, 不是mixer的值. 用来显示在波形图上.