VirtualBox

Changeset 61497 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 6, 2016 3:02:40 PM (9 years ago)
Author:
vboxsync
Message:

Main/xml/Settings.cpp: more complete audio enable handling fix, should be now fully backwards compatible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/Settings.cpp

    r61496 r61497  
    24882488 * Check if all settings have default values.
    24892489 */
    2490 bool AudioAdapter::areDefaultSettings() const
    2491 {
    2492     return !fEnabled
     2490bool AudioAdapter::areDefaultSettings(SettingsVersion_T sv) const
     2491{
     2492    return (sv <= SettingsVersion_v1_14 ? fEnabled : !fEnabled)
    24932493        && controllerType == AudioControllerType_AC97
    24942494        && codecType == AudioCodecType_STAC9700
     
    58645864    }
    58655865
    5866     if (!hw.audioAdapter.areDefaultSettings())
     5866    if (!hw.audioAdapter.areDefaultSettings(m->sv))
    58675867    {
    58685868        xml::ElementNode *pelmAudio = pelmHardware->createChild("AudioAdapter");
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