VirtualBox

Changeset 101199 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 20, 2023 2:14:08 PM (15 months ago)
Author:
vboxsync
Message:

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

Location:
trunk/src/VBox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendCOM.cpp

    r101110 r101199  
    585585    switch (type)
    586586    {
    587         case KAudioControllerType_AC97: return QApplication::translate("UICommon", "ICH AC97", "AudioControllerType");
    588         case KAudioControllerType_SB16: return QApplication::translate("UICommon", "SoundBlaster 16", "AudioControllerType");
    589         case KAudioControllerType_HDA:  return QApplication::translate("UICommon", "Intel HD Audio", "AudioControllerType");
     587        case KAudioControllerType_AC97:        return QApplication::translate("UICommon", "ICH AC97", "AudioControllerType");
     588        case KAudioControllerType_SB16:        return QApplication::translate("UICommon", "SoundBlaster 16", "AudioControllerType");
     589        case KAudioControllerType_HDA:         return QApplication::translate("UICommon", "Intel HD Audio", "AudioControllerType");
     590        case KAudioControllerType_VirtioSound: return QApplication::translate("UICommon", "Virtio-Sound", "AudioControllerType");
    590591        default: AssertMsgFailed(("No text for %d", type)); break;
    591592    }
     
    600601    list.insert(QApplication::translate("UICommon", "SoundBlaster 16", "AudioControllerType"), KAudioControllerType_SB16);
    601602    list.insert(QApplication::translate("UICommon", "Intel HD Audio", "AudioControllerType"),  KAudioControllerType_HDA);
     603    list.insert(QApplication::translate("UICommon", "Virtio-Sound", "AudioControllerType"),    KAudioControllerType_VirtioSound);
    602604    if (!list.contains(strType))
    603605    {
  • trunk/src/VBox/Main/src-client/ConsoleImpl.cpp

    r101039 r101199  
    52915291        switch (audioController)
    52925292        {
    5293             case AudioControllerType_HDA:  strDevice = "hda";     break;
    5294             case AudioControllerType_AC97: strDevice = "ichac97"; break;
    5295             case AudioControllerType_SB16: strDevice = "sb16";    break;
    5296             default:                                              break; /* None. */
     5293            case AudioControllerType_HDA:         strDevice = "hda";          break;
     5294            case AudioControllerType_AC97:        strDevice = "ichac97";      break;
     5295            case AudioControllerType_SB16:        strDevice = "sb16";         break;
     5296            case AudioControllerType_VirtioSound: strDevice = "virtio-sound"; break;
     5297            default:                                                          break; /* None. */
    52975298        }
    52985299    }
  • trunk/src/VBox/Main/src-server/AudioAdapterImpl.cpp

    r98825 r101199  
    397397                defaultCodec = AudioCodecType_STAC9221;
    398398                break;
     399            case AudioControllerType_VirtioSound:
     400                defaultCodec = AudioCodecType_Null;
     401                break;
    399402
    400403            default:
     
    464467            if (aAudioCodec != AudioCodecType_STAC9221)
    465468                hrc = E_INVALIDARG;
     469            break;
     470        }
     471
     472        case AudioControllerType_VirtioSound:
     473        {
     474            hrc = E_NOTIMPL;
    466475            break;
    467476        }
  • 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.

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