Well I'm still stuck in that I can't work out how to get the sound devices from Teamspeak and set them.
I'm populating a comboBox on a C# form with the playback and capture devices using the code below.
Code:
MMDeviceEnumerator enumerator = new MMDeviceEnumerator();
foreach (MMDevice device in enumerator.EnumerateAudioEndPoints(DataFlow.Capture, DeviceState.All))
{
microphone.Items.Add(device.FriendlyName);
}
foreach (MMDevice device in enumerator.EnumerateAudioEndPoints(DataFlow.Render, DeviceState.All))
{
speakers.Items.Add(device.FriendlyName);
}
Is there a way I can set the OpenCapture and OpenPlayback using the method above?
Connection.OpenCapture(WHAT GOES HERE?);
I have looked over the SDK documentation and came across GetPlaybackMode and GetPlaybackDevices as thorwe suggested, but I can't work out how to use them?