VirtualBox

Changeset 88732 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Apr 27, 2021 12:12:37 PM (4 years ago)
Author:
vboxsync
Message:

DrvAudio: Use provide PDMIAUDIONOTIFYFROMHOST regardless of VBOX_WITH_AUDIO_CALLBACKS. (too many ifdefs) bugref:9890

File:
1 edited

Legend:

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

    r88731 r88732  
    240240    /** Our audio connector interface. */
    241241    PDMIAUDIOCONNECTOR      IAudioConnector;
    242 #ifdef VBOX_WITH_AUDIO_CALLBACKS
    243242    /** Interface used by the host backend. */
    244243    PDMIAUDIONOTIFYFROMHOST IAudioNotifyFromHost;
    245 #endif
    246244    /** Pointer to the driver instance. */
    247245    PPDMDRVINS              pDrvIns;
     
    30463044*   PDMIAUDIONOTIFYFROMHOST interface implementation.                                                                            *
    30473045*********************************************************************************************************************************/
    3048 #ifdef VBOX_WITH_AUDIO_CALLBACKS
    30493046
    30503047/**
     
    30863083}
    30873084
    3088 #endif /* VBOX_WITH_AUDIO_CALLBACKS */
    3089 
    30903085
    30913086/*********************************************************************************************************************************
     
    31053100    PDMIBASE_RETURN_INTERFACE(pszIID, PDMIBASE, &pDrvIns->IBase);
    31063101    PDMIBASE_RETURN_INTERFACE(pszIID, PDMIAUDIOCONNECTOR, &pThis->IAudioConnector);
    3107 #ifdef VBOX_WITH_AUDIO_CALLBACKS
    31083102    PDMIBASE_RETURN_INTERFACE(pszIID, PDMIAUDIONOTIFYFROMHOST, &pThis->IAudioNotifyFromHost);
    3109 #endif
    31103103
    31113104    return NULL;
     
    35753568    pThis->IAudioConnector.pfnStreamRead        = drvAudioStreamRead;
    35763569    pThis->IAudioConnector.pfnStreamCapture     = drvAudioStreamCapture;
    3577 #ifdef VBOX_WITH_AUDIO_CALLBACKS
    35783570    /* IAudioNotifyFromHost */
    35793571    pThis->IAudioNotifyFromHost.pfnNotifyDevicesChanged = drvAudioNotifyFromHost_NotifyDevicesChanged;
    3580 #endif
    35813572
    35823573    /*
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