VirtualBox

Changeset 70471 in vbox


Ignore:
Timestamp:
Jan 5, 2018 3:37:08 PM (7 years ago)
Author:
vboxsync
Message:

Audio/VBoxMMNotificationClient.cpp: Documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/VBoxMMNotificationClient.cpp

    r70470 r70471  
    4343}
    4444
     45/**
     46 * Uninitializes the mulitmedia notification client implementation.
     47 */
    4548void VBoxMMNotificationClient::Dispose(void)
    4649{
     
    5558}
    5659
     60/**
     61 * Initializes the mulitmedia notification client implementation.
     62 *
     63 * @return  HRESULT
     64 */
    5765HRESULT VBoxMMNotificationClient::Initialize(void)
    5866{
     
    7482}
    7583
     84/**
     85 * Registration callback implementation for storing our (required) contexts.
     86 *
     87 * @return  IPRT status code.
     88 * @param   pDrvIns             Driver instance to register the notification client to.
     89 * @param   pfnCallback         Audio callback to call by the notification client in case of new events.
     90 */
    7691int VBoxMMNotificationClient::RegisterCallback(PPDMDRVINS pDrvIns, PFNPDMHOSTAUDIOCALLBACK pfnCallback)
    7792{
     
    8297}
    8398
     99/**
     100 * Unregistration callback implementation for cleaning up our mess when we're done handling
     101 * with notifications.
     102 */
    84103void VBoxMMNotificationClient::UnregisterCallback(void)
    85104{
     
    88107}
    89108
     109/**
     110 * Stub being called when attaching to the default audio endpoint.
     111 * Does nothing at the moment.
     112 */
    90113HRESULT VBoxMMNotificationClient::AttachToDefaultEndpoint(void)
    91114{
     
    93116}
    94117
     118/**
     119 * Stub being called when detaching from the default audio endpoint.
     120 * Does nothing at the moment.
     121 */
    95122void VBoxMMNotificationClient::DetachFromEndpoint(void)
    96123{
     
    98125}
    99126
     127/**
     128 * Handler implementation which is called when an audio device state
     129 * has been changed.
     130 *
     131 * @return  HRESULT
     132 * @param   pwstrDeviceId       Device ID the state is announced for.
     133 * @param   dwNewState          New state the device is now in.
     134 */
    100135STDMETHODIMP VBoxMMNotificationClient::OnDeviceStateChanged(LPCWSTR pwstrDeviceId, DWORD dwNewState)
    101136{
     
    133168}
    134169
     170/**
     171 * Handler implementation which is called when a new audio device has been added.
     172 *
     173 * @return  HRESULT
     174 * @param   pwstrDeviceId       Device ID which has been added.
     175 */
    135176STDMETHODIMP VBoxMMNotificationClient::OnDeviceAdded(LPCWSTR pwstrDeviceId)
    136177{
     
    140181}
    141182
     183/**
     184 * Handler implementation which is called when an audio device has been removed.
     185 *
     186 * @return  HRESULT
     187 * @param   pwstrDeviceId       Device ID which has been removed.
     188 */
    142189STDMETHODIMP VBoxMMNotificationClient::OnDeviceRemoved(LPCWSTR pwstrDeviceId)
    143190{
     
    147194}
    148195
     196/**
     197 * Handler implementation which is called when the device audio device has been
     198 * changed.
     199 *
     200 * @return  HRESULT
     201 * @param   eFlow                     Flow direction of the new default device.
     202 * @param   eRole                     Role of the new default device.
     203 * @param   pwstrDefaultDeviceId      ID of the new default device.
     204 */
    149205STDMETHODIMP VBoxMMNotificationClient::OnDefaultDeviceChanged(EDataFlow eFlow, ERole eRole, LPCWSTR pwstrDefaultDeviceId)
    150206{
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette