IAudioMultiMediaDevice::DeviceNumSet

HRESULT DeviceNumSet(DWORD dwDeviceID);

Sets a new device identifier for the multimedia device that is the source of the audio stream.

· Returns NOERROR if successful, or one of these error values:

E_FAIL
AUDERR_BADDEVICEID
AUDERR_SYNCNOTALLOWED
AUDERR_WAVEDEVICEBUSY
AUDERR_WAVEDEVNOTSUPPORTED

dwDeviceID

[in] New device identifier.