public class MMNotificationClient
extends java.lang.Object
WASAPI
and
automatically registered with all IMMDeviceEnumerator instances.
Invocations of methods on the IMMNotificationClient instance by
Windows Audio Session API (WASAPI) are forwarded by WASAPI to the
respective static methods of the MMNotificationClient class.Modifier and Type | Method and Description |
---|---|
static void |
OnDefaultDeviceChanged(int flow,
int role,
java.lang.String pwstrDefaultDevice) |
static void |
OnDeviceAdded(java.lang.String pwstrDeviceId) |
static void |
OnDeviceRemoved(java.lang.String pwstrDeviceId) |
static void |
OnDeviceStateChanged(java.lang.String pwstrDeviceId,
int dwNewState) |
static void |
OnPropertyValueChanged(java.lang.String pwstrDeviceId,
long key) |
static void |
RegisterEndpointNotificationCallback(IMMNotificationClient pNotify)
Registers a specific IMMNotificationClient to be notified 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.
|
static void |
UnregisterEndpointNotificationCallback(IMMNotificationClient pNotify)
Deletes the registration of a specific IMMNotificationClient
that the client registered in a previous call to
RegisterEndpointNotificationCallback(IMMNotificationClient) . |
public static void OnDefaultDeviceChanged(int flow, int role, java.lang.String pwstrDefaultDevice)
public static void OnDeviceAdded(java.lang.String pwstrDeviceId)
public static void OnDeviceRemoved(java.lang.String pwstrDeviceId)
public static void OnDeviceStateChanged(java.lang.String pwstrDeviceId, int dwNewState)
public static void OnPropertyValueChanged(java.lang.String pwstrDeviceId, long key)
public static void RegisterEndpointNotificationCallback(IMMNotificationClient pNotify)
pNotify
- the IMMNotificationClient to registerpublic static void UnregisterEndpointNotificationCallback(IMMNotificationClient pNotify)
RegisterEndpointNotificationCallback(IMMNotificationClient)
.pNotify
- the IMMNotificationClient to delete the
registration of
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.