public interface IMMNotificationClient
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.
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
DataFlowThe data-flow direction of the endpoint device.
role
RoleThe device role of the audio endpoint device.
deviceId
StringThe 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
StringThe 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
StringThe 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
StringThe device id that identifies the audio endpoint device.
deviceState
DeviceStateSpecifies 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
StringThe device id that identifies the audio endpoint device.
key
PropertyKeyThe PropertyKey that specifies the changed property.
Returns
HRESULT