Changeset 68537 in vbox for trunk/src/VBox/Main
- Timestamp:
- Aug 28, 2017 1:50:35 PM (7 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/AudioAdapterImpl.cpp
r68485 r68537 86 86 mData.allocate(); 87 87 mData->driverType = defaultAudioDriver; 88 mData->fEnabledIn = false; 89 mData->fEnabledOut = false; 88 90 89 91 /* Confirm a successful initialization */ -
trunk/src/VBox/Main/xml/Settings.cpp
r68485 r68537 2547 2547 AudioAdapter::AudioAdapter() : 2548 2548 fEnabled(true), // default for old VMs, for new ones it's false 2549 fEnabledIn(true), 2550 fEnabledOut(true), 2549 fEnabledIn(true), // default for old VMs, for new ones it's false 2550 fEnabledOut(true), // default for old VMs, for new ones it's false 2551 2551 controllerType(AudioControllerType_AC97), 2552 2552 codecType(AudioCodecType_STAC9700), … … 2561 2561 { 2562 2562 return (sv < SettingsVersion_v1_16 ? false : !fEnabled) 2563 && fEnabledIn == true 2563 && (sv <= SettingsVersion_v1_16 ? fEnabledIn : !fEnabledIn) 2564 && (sv <= SettingsVersion_v1_16 ? fEnabledOut : !fEnabledOut) 2564 2565 && fEnabledOut == true 2565 2566 && controllerType == AudioControllerType_AC97 … … 3825 3826 /* The new default is disabled, before it was enabled by default. */ 3826 3827 hw.audioAdapter.fEnabled = false; 3828 /* The new default is disabled, before it was enabled by default. */ 3829 hw.audioAdapter.fEnabledIn = false; 3830 /* The new default is disabled, before it was enabled by default. */ 3831 hw.audioAdapter.fEnabledOut = false; 3827 3832 } 3828 3833 … … 6039 6044 pelmAudio->setAttribute("enabled", hw.audioAdapter.fEnabled); 6040 6045 6041 if (!hw.audioAdapter.fEnabledIn) 6046 if ( (m->sv <= SettingsVersion_v1_16 && !hw.audioAdapter.fEnabledIn) 6047 || (m->sv > SettingsVersion_v1_16 && hw.audioAdapter.fEnabledIn)) 6042 6048 pelmAudio->setAttribute("enabledIn", hw.audioAdapter.fEnabledIn); 6043 6049 6044 if (!hw.audioAdapter.fEnabledOut) 6050 if ( (m->sv <= SettingsVersion_v1_16 && !hw.audioAdapter.fEnabledOut) 6051 || (m->sv > SettingsVersion_v1_16 && hw.audioAdapter.fEnabledOut)) 6045 6052 pelmAudio->setAttribute("enabledOut", hw.audioAdapter.fEnabledOut); 6046 6053
Note:
See TracChangeset
for help on using the changeset viewer.