Methods (5)
Namespace: CSCore.CoreAudioAPI

Syntax

public interface IMMNotificationClient

Summary

The IMMNotificationClient interface provides notifications when an audio endpoint device is added or removed, when the state or properties of an endpoint device change, or when there is a change in the default role assigned to an endpoint device.

Methods

OnDefaultDeviceChanged(DataFlow dataFlow, Role role, String deviceId)

The OnDefaultDeviceChanged method notifies the client that the default audio endpoint device for a particular device role has changed.

public abstract Int32 OnDefaultDeviceChanged(DataFlow dataFlow, Role role, String deviceId)

Parameters

dataFlow

DataFlow

The data-flow direction of the endpoint device.

role

Role

The device role of the audio endpoint device.

deviceId

String

The device id that identifies the audio endpoint device.

Returns

HRESULT

OnDeviceAdded(String deviceId)

The OnDeviceAdded method indicates that a new audio endpoint device has been added.

public abstract Int32 OnDeviceAdded(String deviceId)

Parameters

deviceId

String

The device id that identifies the audio endpoint device.

Returns

HRESULT

OnDeviceRemoved(String deviceId)

The OnDeviceRemoved method indicates that an audio endpoint device has been removed.

public abstract Int32 OnDeviceRemoved(String deviceId)

Parameters

deviceId

String

The device id that identifies the audio endpoint device.

Returns

HRESULT

OnDeviceStateChanged(String deviceId, DeviceState deviceState)

The OnDeviceStateChanged method indicates that the state of an audio endpoint device has changed.

public abstract Int32 OnDeviceStateChanged(String deviceId, DeviceState deviceState)

Parameters

deviceId

String

The device id that identifies the audio endpoint device.

deviceState

DeviceState

Specifies the new state of the endpoint device.

Returns

HRESULT

OnPropertyValueChanged(String deviceId, PropertyKey key)

The OnPropertyValueChanged method indicates that the value of a property belonging to an audio endpoint device has changed.

public abstract Int32 OnPropertyValueChanged(String deviceId, PropertyKey key)

Parameters

deviceId

String

The device id that identifies the audio endpoint device.

key

PropertyKey

The PropertyKey that specifies the changed property.

Returns

HRESULT