DeviceManager.ActiveAudioDevice property

Lync 2013

Gets and sets the active audio device.

Namespace:  Microsoft.Lync.Model.Device
Assembly:  Microsoft.Lync.Model (in Microsoft.Lync.Model.dll)

public AudioDevice ActiveAudioDevice { get; set; }

If a conversation is going on, then setting this changes the currently in used device to the new device. This change happens in mid call and is not remembered when that conversation ends. If a conversation is not going on, then setting this property changes default device so the set device will be used any time a new conversation starts. Please note that when you change the active audio device between calls, the device you set is not persisted after you close the Lync client. To persist an audio device, you must set the audio device in the Lync client options Audio Device Settings page.