Class MMNotificationClient


  • public class MMNotificationClient
    extends Object
    Implements the Java counterpart of an IMMNotificationClient instance statically allocated by the native counterpart of 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.
    Author:
    Lyubomir Marinov
    • Method Detail

      • OnDefaultDeviceChanged

        public static void OnDefaultDeviceChanged​(int flow,
                                                  int role,
                                                  String pwstrDefaultDevice)
      • OnDeviceAdded

        public static void OnDeviceAdded​(String pwstrDeviceId)
      • OnDeviceRemoved

        public static void OnDeviceRemoved​(String pwstrDeviceId)
      • OnDeviceStateChanged

        public static void OnDeviceStateChanged​(String pwstrDeviceId,
                                                int dwNewState)
      • OnPropertyValueChanged

        public static void OnPropertyValueChanged​(String pwstrDeviceId,
                                                  long key)
      • RegisterEndpointNotificationCallback

        public 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.
        Parameters:
        pNotify - the IMMNotificationClient to register