Share via


IRTCClient::PreferredAudioDevice (Windows CE 5.0)

Send Feedback

This method sets or gets the preferred audio device for audio capturing or rendering.

HRESULT put_PreferredAudioDevice(RTC_AUDIO_DEVICE enDevice,BSTRbstrDeviceName);HRESULT get_PreferredAudioDevice(RTC_AUDIO_DEVICE enDevice,BSTR* pbstrDeviceName);

Parameters

  • enDevice
    [in] An RTC_AUDIO_DEVICE enumeration value specifying the audio device type.

  • bstrDeviceName, pbstrDeviceName
    [in, out] The device name.

    On output, this parameter is a pointer to a BSTR that is filled with the device name, or an empty string if there is no entry.

    The method allocates the buffer.

    The caller is responsible for releasing this memory with SysFreeString.

Return Values

This method can return an RTC_E_ constant.

The following table shows an additional possible return value.

Value Description
E_INVALIDARG No such audio device.

Remarks

The preferred audio device value persists for each user even after the application is shut down.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Rtccore.h, Rtccore.idl.
Link Library: Uuid.lib.

See Also

IRTCClient | RTC_AUDIO_DEVICE | SysFreeString

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.