Shaun Luttin
Shaun Luttin

Reputation: 141572

Use the Microsoft Lync API to Change the Custom Audio Device Microphone

The LyncClient.DeviceManager.AudioDevices does not allow us to independently change the microphone or speaker of a Custom Audio Device (aka Virtual Audio Device).

To Lync, an Audio Device must have both a mic and a speaker. This includes:

The Lync SDK does allow us to switch among Audio Devices, but it does not allow us to change the microphone nor the speakers of a Virtual Audio Device.

What we need is this:

private void UpdateCustomAudioDevice(object targetMicrophone, object targetSpeakers)
{
    LyncClient.GetClient().DeviceManager.ActiveAudioDevice.Microphone = targetMicrophone;
    LyncClient.GetClient().DeviceManager.ActiveAudioDevice.Speakers = targetSpeakers;
}

How can we do that? Can we use C#? Can we do it with the WinApi?

(1) Audio Devices

Upvotes: 1

Views: 1040

Answers (1)

Anas
Anas

Reputation: 731

You can't do this using lync sdk, see microsoft answer here, you need to set default devices for the your machine see this question.

hope this help.

Upvotes: 1

Related Questions