Reputation: 141572
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:
hardware devices, such as headsets, that have both components built in.
Virtual Audio Devices that are amalgams of two pieces of hardware. E.g. A webcam microphone comibined with USB speakers
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?
Upvotes: 1
Views: 1040