VirtualBox

Changeset 68193 in vbox


Ignore:
Timestamp:
Jul 31, 2017 11:32:41 AM (7 years ago)
Author:
vboxsync
Message:

Audio: Added "VBoxInternal2/Audio/Debug/Enabled" to also make use of the debugging backend in regular (release) builds when needed. Disabled by default.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r68163 r68193  
    440440 VBOX_WITH_AUDIO_PULSE = 1
    441441endif
    442 ifeq ($(KBUILD_TYPE),debug)
    443  ## @todo Only build if running on test boxes?
    444  VBOX_WITH_AUDIO_DEBUG =
    445 endif
     442# Enable building debugging backend.
     443# Only will be used at runtime when "VBoxInternal2/Audio/Debug/Enabled" (VM / global) is set.
     444VBOX_WITH_AUDIO_DEBUG = 1
    446445# Enable PCI passthrough support.
    447446VBOX_WITH_PCI_PASSTHROUGH = 1
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r68026 r68193  
    30003000
    30013001#ifdef VBOX_WITH_AUDIO_DEBUG
    3002             /*
    3003              * The audio debug backend. Only can be used in debug builds.
    3004              */
    3005             CFGMR3InsertNodeF(pInst, &pLunL1, "LUN#%RU8", u8AudioLUN++);
    3006             InsertConfigString(pLunL1, "Driver", "AUDIO");
    3007 
    3008             InsertConfigNode(pLunL1, "AttachedDriver", &pLunL1);
    3009             InsertConfigString(pLunL1, "Driver", "DebugAudio");
    3010 
    3011             InsertConfigNode(pLunL1, "Config", &pCfg);
    3012             InsertConfigString(pCfg, "AudioDriver", "DebugAudio");
    3013             InsertConfigString(pCfg, "StreamName", bstr);
     3002# ifdef DEBUG_andy
     3003            strTmp = "1"; /* Always use the debugging backend. */
     3004# else
     3005            GetExtraDataBoth(virtualBox, pMachine, "VBoxInternal2/Audio/Debug/Enabled", &strTmp);
     3006# endif
     3007            if (!strTmp.isEmpty())
     3008            {
     3009                LogRel(("Audio: Debugging enabled\n"));
     3010
     3011                /*
     3012                 * The audio debugging backend.
     3013                 */
     3014                CFGMR3InsertNodeF(pInst, &pLunL1, "LUN#%RU8", u8AudioLUN++);
     3015                InsertConfigString(pLunL1, "Driver", "AUDIO");
     3016
     3017                InsertConfigNode(pLunL1, "AttachedDriver", &pLunL1);
     3018                InsertConfigString(pLunL1, "Driver", "DebugAudio");
     3019
     3020                InsertConfigNode(pLunL1, "Config", &pCfg);
     3021                InsertConfigString(pCfg, "AudioDriver", "DebugAudio");
     3022            }
    30143023#endif /* VBOX_WITH_AUDIO_DEBUG */
    30153024
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