VirtualBox

Changeset 90337 in vbox


Ignore:
Timestamp:
Jul 26, 2021 1:55:53 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145900
Message:

Main/ConsoleImpl2: Added extra data hack for overriding wasapi driver: VBoxManage setextradata vmname VBoxInternal2/Audio/WindowsDrv dsound bugref:9890

File:
1 edited

Legend:

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

    r90203 r90337  
    31533153                        /* Use the windows audio session (WAS) API rather than Direct Sound on windows
    31543154                           versions we've tested it on (currently W7+).  Since Vista, Direct Sound has
    3155                            been emulated on top of WAS according to the docs, so better use WAS directly. */
     3155                           been emulated on top of WAS according to the docs, so better use WAS directly.
     3156
     3157                           Set extradata value "VBoxInternal2/Audio/WindowsDrv" "dsound" to no use WasAPI. */
    31563158                        pszAudioDriver = "DSoundAudio";
    3157                         if (RTSystemGetNtVersion() >= RTSYSTEM_MAKE_NT_VERSION(6,1,0))
     3159                        GetExtraDataBoth(virtualBox, pMachine, "VBoxInternal2/Audio/WindowsDrv", &strTmp); H();
     3160                        if (   RTSystemGetNtVersion() >= RTSYSTEM_MAKE_NT_VERSION(6,1,0)
     3161                            && (   strTmp.isEmpty()
     3162                                || strTmp.equalsIgnoreCase("was")
     3163                                || strTmp.equalsIgnoreCase("wasapi")) )
    31583164                            pszAudioDriver = "HostAudioWas";
    31593165                        break;
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