Exemplo n.º 1
0
        /// <summary>
        /// 打开音频通道_独占
        /// </summary>
        /// <returns></returns>
        public bool CloseSound()
        {
            bool bolResult = false;

            SDK_ZLNetSDK.ZLCloseSound(this, null);
            return(bolResult);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 打开音频通道_独占
        /// </summary>
        /// <returns></returns>
        public bool OpenSound()
        {
            bool bolResult = false;

            //实际测试,打开声音通道程序并不会关闭之前的声音通道,手动关闭,确认仅有一个通在播放
            SDK_ZLNetSDK.ZLCloseSound(this, null);
            if (SDK_ZLNetSDK.ZLNET_OpenSound(m_nPlayHandle))
            {
                SoundState = Enum_VideoPlaySoundState.SoundOpen;
                bolResult  = true;
            }
            return(bolResult);
        }