Public Function SetAudioSource(sAudioSource As AudioSource) As Boolean Dim RefInt As Long Dim strSource As String Select Case sAudioSource Case 1: strSource = "left" Case 2: strSource = "right" Case 0: strSource = "stereo" End Select SetAudioSource = False RefInt = mciSendString("setaudio NOWMUSIC source to " & strSource, vbNull, 0, 0) If RefInt = 0 Then SetAudioSource = True End Function
inin = mciSendString("setaudio " & cccccc & " stream to 1", vbNull, 0, 0),具体你在看下mciSendString函数的介绍,GOOGLE下
Dim RefInt As Long
Dim strSource As String
Select Case sAudioSource
Case 1: strSource = "left"
Case 2: strSource = "right"
Case 0: strSource = "stereo"
End Select SetAudioSource = False
RefInt = mciSendString("setaudio NOWMUSIC source to " & strSource, vbNull, 0, 0) If RefInt = 0 Then SetAudioSource = True End Function