建一个Option组来选择左右声道
Private Sub Option1_Click(Index As Integer)
If WindowsMediaPlayer1.Status = "正在播放" Then
If Index = 0 Then
WindowsMediaPlayer1.Controls.currentAudioLanguageIndex = 2
Else
WindowsMediaPlayer1.Controls.currentAudioLanguageIndex = 3
End If
end if
end sub
这样就可以选择DAT,MPG等视频文件的左右声道,该currentAudioLanguageIndex应该属于隐含属性,编程时不会在提示中出现,在WMP SDK中提及也不多,我找了一整天才总算找出来~