Quantcast
Channel: Plantronics Developer Connection: Message List
Viewing all articles
Browse latest Browse all 377

Re: Re: How to Mute headset controlled by other program?

$
0
0

Hi Wei Chu

 

Thanks for your reply. But unfortunately it does not work.

When I call the SetHeadsetMute(true) nothing happens on the Headset. The mic is not muted.

 

IHostCommand hostCmd= m_currentDevice.HostCommand;

IHostCommandExt hostCmdExt= (IHostCommandExt)hostCmd;

hostCmdExt.SetHeadsetMute(true);

 

The command hostCmdExt.SetHeadsetMute does nothing.

 

From the SpokesWrapper.cs:

        /// <summary>

        /// Set the microphone mute state of the attached Plantronics device.

        /// Note: For wireless devices mute only works when the audio/rf link is active (see also ConnectAudioLinkToDevice method).

        /// </summary>

        /// <param name="mute">A boolean indicating if you want mute on or off</param>

        public void SetMute(bool mute)

        {

            DebugPrint(MethodInfo.GetCurrentMethod().Name, "INFO: Setting mute = " + mute.ToString());

            if (m_activeDevice != null && m_hostCommandExt != null)

            {

                m_hostCommandExt.SetHeadsetMute(mute);

            }

            else

            {

                DebugPrint(MethodInfo.GetCurrentMethod().Name, "Spokes: INFO: cannot set mute, no device");

            }

        }

 

Firmware versions:

USB Firmware: 861

USB Adapter: 61.08

Headset: 99.00

 

Any other ideas?

 

Kind regards

Simon


Viewing all articles
Browse latest Browse all 377

Trending Articles