Changeset 101199 in vbox for trunk/src/VBox/Main/xml
- Timestamp:
- Sep 20, 2023 2:14:08 PM (20 months ago)
- svn:sync-xref-src-repo-rev:
- 159172
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/xml/Settings.cpp
r101168 r101199 5035 5035 else if (strTemp == "HDA") 5036 5036 aa.controllerType = AudioControllerType_HDA; 5037 else if (strTemp == "Virtio-Sound") 5038 aa.controllerType = AudioControllerType_VirtioSound; 5037 5039 else 5038 5040 throw ConfigFileError(this, &elmAudioAdapter, N_("Invalid value '%s' in AudioAdapter/@controller attribute"), strTemp.c_str()); … … 5065 5067 case AudioControllerType_HDA: 5066 5068 aa.codecType = AudioCodecType_STAC9221; 5069 break; 5070 case AudioControllerType_VirtioSound: 5071 aa.codecType = AudioCodecType_Null; 5067 5072 break; 5068 5073 default: … … 8067 8072 xml::ElementNode *pelmAudio = pelmHardware->createChild("AudioAdapter"); 8068 8073 8069 const char *pcszController ;8074 const char *pcszController = NULL; 8070 8075 switch (hw.audioAdapter.controllerType) 8071 8076 { 8077 case AudioControllerType_VirtioSound: 8078 if (m->sv >= SettingsVersion_v1_20) 8079 { 8080 pcszController = "Virtio-Sound"; 8081 break; 8082 } 8083 break; 8072 8084 case AudioControllerType_SB16: 8073 8085 pcszController = "SB16";
Note:
See TracChangeset
for help on using the changeset viewer.