/// <summary> /// 设置音量 /// </summary> public Int32 SetAudioVolume(UInt32 _uVolume) { Int32 iRet = -1; if (m_lHandle != -1) { iRet = VsClientAPI.VSSP_ClientAudioVolum(m_lHandle, _uVolume); m_iVolume = _uVolume; } return(iRet); }
/// <summary> /// 打开音频 /// </summary> public Int32 OpenAudio() { Int32 iRet = -1; if (m_lHandle != -1) { if (m_bConnected == true) { iRet = VsClientAPI.VSSP_ClientPlayAudio(m_lHandle); if (m_iVolume != 0) { iRet = VsClientAPI.VSSP_ClientAudioVolum(m_lHandle, m_iVolume); } } } return(iRet); }