VirtualBox

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


Ignore:
Timestamp:
May 26, 2021 9:02:16 AM (4 years ago)
Author:
vboxsync
Message:

Audio/ValKit: When both, ValidationKit and Debug mode (for audio) are enabled, skip configuring the Debug audio driver, as both modes can mess with the audio data and would lead to side effects. bugref:10008

File:
1 edited

Legend:

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

    r89281 r89287  
    32473247            {
    32483248#ifdef VBOX_WITH_AUDIO_DEBUG
    3249                 InsertConfigNodeF(pInst, &pLunL0, "LUN#%u", idxAudioLun);
    3250                 i_configAudioDriver(audioAdapter, virtualBox, pMachine, pLunL0, "DebugAudio");
    3251                 idxAudioLun++;
     3249# ifdef VBOX_WITH_AUDIO_VALIDATIONKIT
     3250                /*
     3251                 * When both, ValidationKit and Debug mode (for audio) are enabled,
     3252                 * skip configuring the Debug audio driver, as both modes can
     3253                 * mess with the audio data and would lead to side effects.
     3254                 *
     3255                 * The ValidationKit audio driver has precedence over the Debug audio driver.
     3256                 */
     3257                if (fValKitEnabled)
     3258                {
     3259                    LogRel(("Audio: Warning: ValidationKit running and Debug mode enabled -- disabling Debug driver\n"));
     3260                }
     3261                else
     3262                {
     3263# endif /* VBOX_WITH_AUDIO_VALIDATIONKIT */
     3264                    InsertConfigNodeF(pInst, &pLunL0, "LUN#%u", idxAudioLun);
     3265                    i_configAudioDriver(audioAdapter, virtualBox, pMachine, pLunL0, "DebugAudio");
     3266                    idxAudioLun++;
     3267# ifdef VBOX_WITH_AUDIO_VALIDATIONKIT
     3268                }
     3269# endif /* VBOX_WITH_AUDIO_VALIDATIONKIT */
    32523270#endif /* VBOX_WITH_AUDIO_DEBUG */
    32533271
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