VirtualBox

Changeset 65164 in vbox


Ignore:
Timestamp:
Jan 5, 2017 5:45:12 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
112667
Message:

Main/VRDE: Got rid of Doppelmoppel i_getAudioVRDE() functions and use VBOX_WITH_VRDE_AUDIO where needed.

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/ConsoleImpl.h

    r65162 r65164  
    190190    int i_hgcmLoadService(const char *pszServiceLibrary, const char *pszServiceName);
    191191    VMMDev *i_getVMMDev() { return m_pVMMDev; }
    192     AudioVRDE *i_getAudioVRDE() { return mAudioVRDE; }
    193192
    194193#ifdef VBOX_WITH_EXTPACK
  • trunk/src/VBox/Main/src-client/ConsoleVRDPServer.cpp

    r63563 r65164  
    55
    66/*
    7  * Copyright (C) 2006-2016 Oracle Corporation
     7 * Copyright (C) 2006-2017 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2121#include "KeyboardImpl.h"
    2222#include "MouseImpl.h"
     23#ifdef VBOX_WITH_VRDE_AUDIO
    2324#include "DrvAudioVRDE.h"
     25#endif
    2426#ifdef VBOX_WITH_EXTPACK
    2527# include "ExtPackManagerImpl.h"
     
    956958        ASMAtomicWriteU32(&pServer->mu32AudioInputClientId, 0);
    957959
     960#ifdef VBOX_WITH_VRDE_AUDIO
    958961        AudioVRDE *pVRDE = pServer->mConsole->i_getAudioVRDE();
    959962        if (pVRDE)
    960963            pVRDE->onVRDEInputIntercept(false /* fIntercept */);
     964#endif
    961965    }
    962966
     
    10171021                LogFunc(("Intercepting audio input by client %RU32\n", u32ClientId));
    10181022
     1023#ifdef VBOX_WITH_VRDE_AUDIO
    10191024                AudioVRDE *pVRDE = pServer->mConsole->i_getAudioVRDE();
    10201025                if (pVRDE)
    10211026                    pVRDE->onVRDEInputIntercept(true /* fIntercept */);
     1027#endif
    10221028            }
    10231029            else
     
    12901296    AssertPtrReturnVoid(pServer);
    12911297
     1298#ifdef VBOX_WITH_VRDE_AUDIO
    12921299    AudioVRDE *pVRDE = pServer->mConsole->i_getAudioVRDE();
    12931300    if (!pVRDE) /* Nothing to do, bail out early. */
     
    13131320            break;
    13141321    }
     1322#else
     1323    RT_NOREF(pvCtx, u32Event, pvData, cbData);
     1324#endif /* VBOX_WITH_VRDE_AUDIO */
    13151325}
    13161326
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