VirtualBox

Changeset 89580 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Jun 9, 2021 1:22:55 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145018
Message:

Main: Try fix VRDP-input-always-disabled regression from r120203+r120206. bugref:7820 bugref:9890

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

Legend:

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

    r82968 r89580  
    3434struct AudioDriverCfg
    3535{
    36     AudioDriverCfg(Utf8Str a_strDev = "", unsigned a_uInst = 0, unsigned a_uLUN = 0, Utf8Str a_strName = "")
     36    AudioDriverCfg(Utf8Str a_strDev = "", unsigned a_uInst = 0, unsigned a_uLUN = 0, Utf8Str a_strName = "",
     37                   bool a_fEnabledIn = false, bool a_fEnabledOut = false)
    3738        : strDev(a_strDev)
    3839        , uInst(a_uInst)
    3940        , uLUN(a_uLUN)
    40         , strName(a_strName) { }
     41        , strName(a_strName)
     42        , fEnabledIn(a_fEnabledIn)
     43        , fEnabledOut(a_fEnabledOut)
     44    { }
    4145
    4246    /** Copy assignment operator. */
    4347    AudioDriverCfg& operator=(AudioDriverCfg const &a_rThat) RT_NOEXCEPT
    4448    {
    45         this->strDev  = a_rThat.strDev;
    46         this->uInst   = a_rThat.uInst;
    47         this->uLUN    = a_rThat.uLUN;
    48         this->strName = a_rThat.strName;
     49        this->strDev      = a_rThat.strDev;
     50        this->uInst       = a_rThat.uInst;
     51        this->uLUN        = a_rThat.uLUN;
     52        this->strName     = a_rThat.strName;
     53        this->fEnabledIn  = a_rThat.fEnabledIn;
     54        this->fEnabledOut = a_rThat.fEnabledOut;
    4955
    5056        return *this;
     
    5258
    5359    /** The device name. */
    54     Utf8Str              strDev;
     60    Utf8Str             strDev;
    5561    /** The device instance. */
    56     unsigned             uInst;
     62    unsigned            uInst;
    5763    /** The LUN the driver is attached to.
    5864     *  Set the UINT8_MAX if not attached. */
    59     unsigned             uLUN;
     65    unsigned            uLUN;
    6066    /** The driver name. */
    61     Utf8Str              strName;
     67    Utf8Str             strName;
     68    /** Whether input is enabled. */
     69    bool                fEnabledIn;
     70    /** Whether output is enabled. */
     71    bool                fEnabledOut;
    6272};
    6373
  • trunk/src/VBox/Main/include/ConsoleImpl.h

    r88209 r89580  
    674674
    675675    static DECLCALLBACK(int) i_configConstructor(PUVM pUVM, PVM pVM, void *pvConsole);
    676     void i_configAudioDriver(IAudioAdapter *pAudioAdapter, IVirtualBox *pVirtualBox, IMachine *pMachine,
    677                              PCFGMNODE pLUN, const char *pszDriverName);
     676    void i_configAudioDriver(IVirtualBox *pVirtualBox, IMachine *pMachine, PCFGMNODE pLUN, const char *pszDriverName,
     677                             bool fAudioEnabledIn, bool fAudioEnabledOut);
    678678    int i_configConstructorInner(PUVM pUVM, PVM pVM, AutoWriteLock *pAlock);
    679679    int i_configCfgmOverlay(PCFGMNODE pRoot, IVirtualBox *pVirtualBox, IMachine *pMachine);
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