VirtualBox

Changeset 101199 in vbox for trunk/src/VBox/Main/xml


Ignore:
Timestamp:
Sep 20, 2023 2:14:08 PM (20 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
159172
Message:

Main + FE/Qt: More Virtio-Sound handling configuration. bugref:10384

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/Settings.cpp

    r101168 r101199  
    50355035        else if (strTemp == "HDA")
    50365036            aa.controllerType = AudioControllerType_HDA;
     5037        else if (strTemp == "Virtio-Sound")
     5038            aa.controllerType = AudioControllerType_VirtioSound;
    50375039        else
    50385040            throw ConfigFileError(this, &elmAudioAdapter, N_("Invalid value '%s' in AudioAdapter/@controller attribute"), strTemp.c_str());
     
    50655067            case AudioControllerType_HDA:
    50665068                aa.codecType = AudioCodecType_STAC9221;
     5069                break;
     5070            case AudioControllerType_VirtioSound:
     5071                aa.codecType = AudioCodecType_Null;
    50675072                break;
    50685073            default:
     
    80678072        xml::ElementNode *pelmAudio = pelmHardware->createChild("AudioAdapter");
    80688073
    8069         const char *pcszController;
     8074        const char *pcszController = NULL;
    80708075        switch (hw.audioAdapter.controllerType)
    80718076        {
     8077            case AudioControllerType_VirtioSound:
     8078                if (m->sv >= SettingsVersion_v1_20)
     8079                {
     8080                    pcszController = "Virtio-Sound";
     8081                    break;
     8082                }
     8083                break;
    80728084            case AudioControllerType_SB16:
    80738085                pcszController = "SB16";
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette