VirtualBox

Changeset 89852 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Jun 23, 2021 1:14:23 PM (4 years ago)
Author:
vboxsync
Message:

Audio/Main: Addendum for r144627 -- also run the ValKit backend in parallel when debug mode is enabled -- nice for immediately spotting audible errors. bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r89595 r89852  
    30233023            if (strTmp.isEmpty())
    30243024                GetExtraDataBoth(virtualBox, pMachine, "VBoxInternal2/Audio/ValKit/Enabled", &strTmp);
     3025            /* Whether the Validation Kit audio backend runs as the primary backend.
     3026             * Can also be used with VBox release builds. */
    30253027            const bool fValKitEnabled = strTmp.equalsIgnoreCase("true") || strTmp.equalsIgnoreCase("1");
    30263028#endif
     
    32613263                 *
    32623264                 * The ValidationKit audio driver has precedence over the Debug audio driver.
     3265                 *
     3266                 * This also can (and will) be used in VBox release builds.
    32633267                 */
    32643268                if (fValKitEnabled)
     
    32663270                    LogRel(("Audio: Warning: ValidationKit running and Debug mode enabled -- disabling Debug driver\n"));
    32673271                }
    3268                 else
    3269                 {
     3272                else /* Debug mode active -- run both (nice for catching errors / doing development). */
     3273                {
     3274                    /*
     3275                     * The ValidationKit backend.
     3276                     */
     3277                    InsertConfigNodeF(pInst, &pLunL0, "LUN#%u", idxAudioLun);
     3278                    i_configAudioDriver(virtualBox, pMachine, pLunL0, "ValidationKitAudio",
     3279                                        !!fAudioEnabledIn, !!fAudioEnabledOut);
     3280                    idxAudioLun++;
    32703281# endif /* VBOX_WITH_AUDIO_VALIDATIONKIT */
     3282                    /*
     3283                     * The Debug audio backend.
     3284                     */
    32713285                    InsertConfigNodeF(pInst, &pLunL0, "LUN#%u", idxAudioLun);
    3272                     i_configAudioDriver(virtualBox, pMachine, pLunL0, "DebugAudio", !!fAudioEnabledIn, !!fAudioEnabledOut);
     3286                    i_configAudioDriver(virtualBox, pMachine, pLunL0, "DebugAudio",
     3287                                        !!fAudioEnabledIn, !!fAudioEnabledOut);
    32733288                    idxAudioLun++;
    32743289# ifdef VBOX_WITH_AUDIO_VALIDATIONKIT
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