Private Declare Function waveOutSetVolume Lib "Winmm" (ByVal wDeviceID As Integer, ByVal dwVolume As Long) As Integer Private Declare Function waveOutGetVolume Lib "Winmm" (ByVal wDeviceID As Integer, dwVolume As Long) As Integer '获得音量设备ID Private Sub Command1_Click() Dim a, i As Long 'i为音量值 a = waveOutGetVolume(0, i)
End Sub 设置音量 Private Sub Command2_Click() Dim a, i As Long a = waveOutSetVolume(0, i) End Sub
Private Declare Function waveOutSetVolume Lib "Winmm" (ByVal wDeviceID As Integer, ByVal dwVolume As Long) As Integer
Private Declare Function waveOutGetVolume Lib "Winmm" (ByVal wDeviceID As Integer, dwVolume As Long) As Integer
'获得音量设备ID
Private Sub Command1_Click()
Dim a, i As Long 'i为音量值
a = waveOutGetVolume(0, i)
End Sub
设置音量
Private Sub Command2_Click()
Dim a, i As Long a = waveOutSetVolume(0, i)
End Sub
YYYY=右声道值=0 到 FFFF
http://community.csdn.net/Expert/topic/3200/3200066.xml?temp=.2178919