NPAPI:DefaultAudioDeviceNotification: Difference between revisions

clarify SetValue a bit
(minor nits)
(clarify SetValue a bit)
Line 17: Line 17:


== NPN_SetVaue - <code>NPPVpluginRequiresAudioDeviceChanges = 4001</code> ==
== NPN_SetVaue - <code>NPPVpluginRequiresAudioDeviceChanges = 4001</code> ==
* when true - call IMMDeviceEnumerator::RegisterEndpointNotificationCallback (if not already registered), so that we can react to the notifications. Also add instance to a requires notification list.
* when true - request that the plugin host register via IMMDeviceEnumerator::RegisterEndpointNotificationCallback and deliver device notifications to the requesting plugin instance.
* when false - remove instance from the requires notification list. If the list is now empty call IMMDeviceEnumerator::UnregisterEndpointNotificationCallback [https://msdn.microsoft.com/en-us/library/windows/desktop/dd371404%28v=vs.85%29.aspx].
* when false - remove plugin instance from the requires notification list. If the list is now empty call IMMDeviceEnumerator::UnregisterEndpointNotificationCallback [https://msdn.microsoft.com/en-us/library/windows/desktop/dd371404%28v=vs.85%29.aspx].


== NPP_SetValue - <code>NPNVaudioDeviceChangeDetails = 4001</code> ==
== NPP_SetValue - <code>NPNVaudioDeviceChangeDetails = 4001</code> ==
Confirmed users
1,982

edits