VirtualBox

Changeset 61577 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 8, 2016 1:33:16 PM (9 years ago)
Author:
vboxsync
Message:

Frontends/VBoxManage: show default audio driver when listing system properties

File:
1 edited

Legend:

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

    r60685 r61577  
    55
    66/*
    7  * Copyright (C) 2006-2015 Oracle Corporation
     7 * Copyright (C) 2006-2016 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    602602    LONG64 i64Value;
    603603    BOOL fValue;
     604    const char *psz;
    604605
    605606    pVirtualBox->COMGETTER(APIVersion)(str.asOutParam());
     
    700701    systemProperties->COMGETTER(DefaultFrontend)(str.asOutParam());
    701702    RTPrintf("Default frontend:                %ls\n", str.raw());
     703    AudioDriverType_T enmAudio;
     704    systemProperties->COMGETTER(DefaultAudioDriver)(&enmAudio);
     705    switch (enmAudio)
     706    {
     707        case AudioDriverType_Null:          psz = "Null";           break;
     708        case AudioDriverType_WinMM:         psz = "WinMM";          break;
     709        case AudioDriverType_OSS:           psz = "OSS";            break;
     710        case AudioDriverType_ALSA:          psz = "ALSA";           break;
     711        case AudioDriverType_DirectSound:   psz = "DirectSound";    break;
     712        case AudioDriverType_CoreAudio:     psz = "CoreAudio";      break;
     713        case AudioDriverType_MMPM:          psz = "MMPM";           break;
     714        case AudioDriverType_Pulse:         psz = "Pulse";          break;
     715        case AudioDriverType_SolAudio:      psz = "SolAudio";       break;
     716        default:                            psz = "Unknown";
     717    }
     718    RTPrintf("Default audio driver:            %s\n", psz);
    702719    systemProperties->COMGETTER(AutostartDatabasePath)(str.asOutParam());
    703720    RTPrintf("Autostart database path:         %ls\n", str.raw());
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