Dim iBA As IBasicAudio
dim PMC as FilgraphManager
Set PMC = New FilgraphManager
Set iBA = PMC
If iMute Then ' 设置静音
iBA.Volume = -10000 '音量最小
Else
iBA.Volume = GetPicVolumeValue(picButton.Left)
End If
'balance的有效范围是(-10000,10000)
' If bolLChannel Then '左声道
' If iBA.Balance <> -10000 Then iBA.Balance = -10000
' ElseIf bolRchannel Then '右声道
' If iBA.Balance <> 10000 Then iBA.Balance = 10000
' ElseIf bolLChannels = False And bolRchannels = False Then '双声道
' If iBA.Balance <> 0 Then iBA.Balance = 0
' End If
set iBA = nothing