VirtualBox

Changeset 63714 in vbox for trunk/src


Ignore:
Timestamp:
Sep 5, 2016 1:03:53 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
110489
Message:

Build fix.

File:
1 edited

Legend:

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

    r63711 r63714  
    8484typedef FNDIRECTSOUNDCAPTUREENUMERATEW *PFNDIRECTSOUNDCAPTUREENUMERATEW;
    8585
    86 #ifdef VBOX_WITH_AUDIO_CALLBACKS
     86#ifdef VBOX_WITH_AUDIO_DEVICE_CALLBACKS
    8787# define VBOX_DSOUND_MAX_EVENTS 3
    8888
     
    9393    DSOUNDEVENT_OUTPUT,
    9494 } DSOUNDEVENT;
    95 #endif /* VBOX_WITH_AUDIO_CALLBACKS */
     95#endif /* VBOX_WITH_AUDIO_DEVICE_CALLBACKS */
    9696
    9797typedef struct DSOUNDHOSTCFG
     
    152152    /** Whether this backend supports any audio output. */
    153153    bool                fEnabledOut;
    154 #ifdef VBOX_WITH_AUDIO_CALLBACKS
     154#ifdef VBOX_WITH_AUDIO_DEVICE_CALLBACKS
    155155    /** Pointer to the audio connector interface of the driver/device above us. */
    156156    PPDMIAUDIOCONNECTOR pUpIAudioConnector;
     
    207207static void     dsoundDeviceRemove(PDSOUNDDEV pDev);
    208208static int      dsoundDevicesEnumerate(PDRVHOSTDSOUND pThis, PPDMAUDIOBACKENDCFG pCfg);
    209 #ifdef VBOX_WITH_AUDIO_CALLBACKS
     209#ifdef VBOX_WITH_AUDIO_DEVICE_CALLBACKS
    210210static int      dsoundNotifyThread(PDRVHOSTDSOUND pThis, bool fShutdown);
    211211#endif
     
    528528        if (SUCCEEDED(hr))
    529529        {
    530 #ifdef VBOX_WITH_AUDIO_CALLBACKS
     530#ifdef VBOX_WITH_AUDIO_DEVICE_CALLBACKS
    531531            if (pThis->aEvents[DSOUNDEVENT_OUTPUT] != NULL)
    532532            {
     
    607607         */
    608608        bd.dwFlags     = DSBCAPS_GLOBALFOCUS | DSBCAPS_GETCURRENTPOSITION2 | DSBCAPS_LOCSOFTWARE;
    609 #ifdef VBOX_WITH_AUDIO_CALLBACKS
     609#ifdef VBOX_WITH_AUDIO_DEVICE_CALLBACKS
    610610        bd.dwFlags    |= DSBCAPS_CTRLPOSITIONNOTIFY;
    611611#endif
     
    684684        DSLOG(("DSound: cMaxSamplesInBuffer=%RU32\n", pDSoundStream->cMaxSamplesInBuffer));
    685685
    686 #ifdef VBOX_WITH_AUDIO_CALLBACKS
     686#ifdef VBOX_WITH_AUDIO_DEVICE_CALLBACKS
    687687        /*
    688688         * Install notification.
     
    730730        hr = IDirectSoundBuffer8_Play(pDSoundStream->pDSB, 0, 0, 0);
    731731
    732 #endif /* VBOX_WITH_AUDIO_CALLBACKS */
     732#endif /* VBOX_WITH_AUDIO_DEVICE_CALLBACKS */
    733733
    734734    } while (0);
     
    12161216            {
    12171217                DWORD fFlags = 0;
    1218 #ifndef VBOX_WITH_AUDIO_CALLBACKS
     1218#ifndef VBOX_WITH_AUDIO_DEVICE_CALLBACKS
    12191219                fFlags |= DSCBSTART_LOOPING;
    12201220#endif
     
    14121412    if (RT_SUCCESS(rc))
    14131413    {
    1414 #ifdef VBOX_WITH_AUDIO_CALLBACKS
     1414#ifdef VBOX_WITH_AUDIO_DEVICE_CALLBACKS
    14151415        if (   pThis->fEnabledOut != RT_BOOL(cbCtx.cDevOut)
    14161416            || pThis->fEnabledIn  != RT_BOOL(cbCtx.cDevIn))
     
    16391639
    16401640            DWORD fFlags = 0;
    1641 #ifndef VBOX_WITH_AUDIO_CALLBACKS
     1641#ifndef VBOX_WITH_AUDIO_DEVICE_CALLBACKS
    16421642            fFlags |= DSCBSTART_LOOPING;
    16431643#endif
     
    19331933}
    19341934
    1935 #ifdef VBOX_WITH_AUDIO_CALLBACKS
     1935#ifdef VBOX_WITH_AUDIO_DEVICE_CALLBACKS
    19361936
    19371937static int dsoundNotifyThread(PDRVHOSTDSOUND pThis, bool fShutdown)
     
    20422042}
    20432043
    2044 #endif /* VBOX_WITH_AUDIO_CALLBACKS */
     2044#endif /* VBOX_WITH_AUDIO_DEVICE_CALLBACKS */
    20452045
    20462046
     
    20542054    LogFlowFuncEnter();
    20552055
    2056 #ifdef VBOX_WITH_AUDIO_CALLBACKS
     2056#ifdef VBOX_WITH_AUDIO_DEVICE_CALLBACKS
    20572057    int rc = dsoundNotifyThread(pThis, true /* fShutdown */);
    20582058    AssertRC(rc);
     
    20942094        IDirectSound_Release(pDirectSound);
    20952095
    2096 #ifdef VBOX_WITH_AUDIO_CALLBACKS
     2096#ifdef VBOX_WITH_AUDIO_DEVICE_CALLBACKS
    20972097        /* Create notification event. */
    20982098        pThis->aEvents[DSOUNDEVENT_NOTIFY] = CreateEvent(NULL /* Security attribute */,
     
    23692369    PDMAUDIO_IHOSTAUDIO_CALLBACKS(drvHostDSound);
    23702370
    2371 #ifdef VBOX_WITH_AUDIO_CALLBACKS
     2371#ifdef VBOX_WITH_AUDIO_DEVICE_CALLBACKS
    23722372    /*
    23732373     * Get the IAudioConnector interface of the above driver/device.
     
    23892389    pThis->fEnabledIn  = false;
    23902390    pThis->fEnabledOut = false;
    2391 #ifdef VBOX_WITH_AUDIO_CALLBACKS
     2391#ifdef VBOX_WITH_AUDIO_DEVICE_CALLBACKS
    23922392    pThis->fStopped    = false;
    23932393    pThis->fShutdown   = false;
Note: See TracChangeset for help on using the changeset viewer.

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