VirtualBox

Changeset 95426 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jun 29, 2022 11:57:35 AM (3 years ago)
Author:
vboxsync
Message:

Main: Use the new "Default" audio driver by default for newly created VMs. bugref:10051

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/AudioAdapterImpl.cpp

    r95423 r95426  
    7272    AssertReturn(autoInitSpan.isOk(), E_FAIL);
    7373
    74     /* Get the default audio driver out of the system properties */
    75     Machine          *pMachine    = aParent->i_getParent();
    76     ComAssertRet(pMachine, E_INVALIDARG);
    77     VirtualBox       *pVirtualBox = pMachine->i_getVirtualBox();
    78     ComAssertRet(pVirtualBox, E_INVALIDARG);
    79     SystemProperties *pSysProps   = pVirtualBox->i_getSystemProperties();
    80     ComAssertRet(pSysProps, E_INVALIDARG);
    81 
    82     AudioDriverType_T defaultAudioDriver;
    83     HRESULT hrc = pSysProps->COMGETTER(DefaultAudioDriver)(&defaultAudioDriver);
    84     if (FAILED(hrc)) return hrc;
    85 
    86     unconst(mParent)  = aParent;
     74    unconst(mParent)   = aParent;
    8775    /* mPeer is left null */
    8876
    8977    mData.allocate();
    90     mData->driverType  = defaultAudioDriver;
     78
     79    /* We now always default to the "Default" audio driver, to make it easier
     80     * to move VMs around different host OSes.
     81     *
     82     * This can be changed by the user explicitly, if needed / wanted. */
     83    mData->driverType  = AudioDriverType_Default;
    9184    mData->fEnabledIn  = false;
    9285    mData->fEnabledOut = false;
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