VirtualBox

Ignore:
Timestamp:
Jun 24, 2022 4:51:21 PM (2 years ago)
Author:
vboxsync
Message:

Main/FE: Added new audio driver type "default" to make it possible to move VMs (appliances) between different platforms without the need of changing the audio driver explicitly. When the "default" driver is selected, the best audio backend option for a platform will be used.

While at it, also added the "WAS" (Windows Audio Session) driver type for which we only had a hack so far. This now can be explicitly selected, also by the frontends. bugref:10051

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp

    r95140 r95364  
    21592159            switch (enmDrvType)
    21602160            {
     2161                case AudioDriverType_Default:
     2162                    if (details == VMINFO_MACHINEREADABLE)
     2163                        pszDrv = "default";
     2164                    else
     2165                        pszDrv = Info::tr("Default");
     2166                    break;
    21612167                case AudioDriverType_Null:
    21622168                    if (details == VMINFO_MACHINEREADABLE)
     
    21642170                    else
    21652171                        pszDrv = Info::tr("Null");
    2166                     break;
    2167                 case AudioDriverType_WinMM:
    2168                     if (details == VMINFO_MACHINEREADABLE)
    2169                         pszDrv = "winmm";
    2170                     else
    2171                         pszDrv = "WINMM";
    2172                     break;
    2173                 case AudioDriverType_DirectSound:
    2174                     if (details == VMINFO_MACHINEREADABLE)
    2175                         pszDrv = "dsound";
    2176                     else
    2177                         pszDrv = "DSOUND";
    21782172                    break;
    21792173                case AudioDriverType_OSS:
     
    21942188                    else
    21952189                        pszDrv = "PulseAudio";
     2190                    break;
     2191                case AudioDriverType_WinMM:
     2192                    if (details == VMINFO_MACHINEREADABLE)
     2193                        pszDrv = "winmm";
     2194                    else
     2195                        pszDrv = "WINMM";
     2196                    break;
     2197                case AudioDriverType_DirectSound:
     2198                    if (details == VMINFO_MACHINEREADABLE)
     2199                        pszDrv = "dsound";
     2200                    else
     2201                        pszDrv = "DirectSound";
     2202                    break;
     2203                case AudioDriverType_WAS:
     2204                    if (details == VMINFO_MACHINEREADABLE)
     2205                        pszDrv = "was";
     2206                    else
     2207                        pszDrv = "Windows Audio Session (WAS)";
    21962208                    break;
    21972209                case AudioDriverType_CoreAudio:
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