Changeset 95426 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jun 29, 2022 11:57:35 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/AudioAdapterImpl.cpp
r95423 r95426 72 72 AssertReturn(autoInitSpan.isOk(), E_FAIL); 73 73 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; 87 75 /* mPeer is left null */ 88 76 89 77 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; 91 84 mData->fEnabledIn = false; 92 85 mData->fEnabledOut = false;
Note:
See TracChangeset
for help on using the changeset viewer.