MediaDevice.DefaultAudioRenderDeviceChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Raised when the default audio render device is changed.
// Register
static event_token DefaultAudioRenderDeviceChanged(TypedEventHandler<IInspectable, DefaultAudioRenderDeviceChangedEventArgs const&> const& handler) const;
// Revoke with event_token
static void DefaultAudioRenderDeviceChanged(event_token const* cookie) const;
// Revoke with event_revoker
static MediaDevice::DefaultAudioRenderDeviceChanged_revoker DefaultAudioRenderDeviceChanged(auto_revoke_t, TypedEventHandler<IInspectable, DefaultAudioRenderDeviceChangedEventArgs const&> const& handler) const;
public static event TypedEventHandler<object,DefaultAudioRenderDeviceChangedEventArgs> DefaultAudioRenderDeviceChanged;
function onDefaultAudioRenderDeviceChanged(eventArgs) { /* Your code */ }
Windows.Media.Devices.MediaDevice.addEventListener("defaultaudiorenderdevicechanged", onDefaultAudioRenderDeviceChanged);
Windows.Media.Devices.MediaDevice.removeEventListener("defaultaudiorenderdevicechanged", onDefaultAudioRenderDeviceChanged);
- or -
Windows.Media.Devices.MediaDevice.ondefaultaudiorenderdevicechanged = onDefaultAudioRenderDeviceChanged;
Public Shared Custom Event DefaultAudioRenderDeviceChanged As TypedEventHandler(Of Object, DefaultAudioRenderDeviceChangedEventArgs)
Event Type
TypedEventHandler<Object,DefaultAudioRenderDeviceChangedEventArgs>
TypedEventHandler<IInspectable,DefaultAudioRenderDeviceChangedEventArgs>