private void 设置当前音频设备IDToolStripMenuItem_Click(object sender, EventArgs e) { int ret = -1; MIXER_DEVICE_INFO_T deviceInfo = new MIXER_DEVICE_INFO_T(); int deviceCount = -1; ret = PlayerSDK.LibEasyPlayerPro_SetAudioOutputDeviceId(palyerHandle, DateTime.Now.Minute); ret = PlayerSDK.LibEasyPlayerPro_SetAudioOutputDeviceName(palyerHandle, DateTime.Now.ToString()); ret = PlayerSDK.LibEasyPlayerPro_GetAudioOutputDeviceList(palyerHandle, ref deviceInfo, ref deviceCount); }
private void 音频设备列表ToolStripMenuItem_Click(object sender, EventArgs e) { MIXER_DEVICE_INFO_T deviceInfo = new MIXER_DEVICE_INFO_T(); int deviceCount = -1; int ret = -1; ret = PlayerSDK.LibEasyPlayerPro_GetAudioOutputDeviceList(palyerHandle, ref deviceInfo, ref deviceCount); PlayerSDK.LibEasyPlayerPro_SetOverlayText(palyerHandle, channelID, string.Format("声音设备个数:{0}", deviceCount)); Thread.Sleep(2000); PlayerSDK.LibEasyPlayerPro_ClearOverlayText(palyerHandle, channelID); }