Changeset 101199 in vbox for trunk/src/VBox
- Timestamp:
- Sep 20, 2023 2:14:08 PM (15 months ago)
- Location:
- trunk/src/VBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendCOM.cpp
r101110 r101199 585 585 switch (type) 586 586 { 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"); 590 591 default: AssertMsgFailed(("No text for %d", type)); break; 591 592 } … … 600 601 list.insert(QApplication::translate("UICommon", "SoundBlaster 16", "AudioControllerType"), KAudioControllerType_SB16); 601 602 list.insert(QApplication::translate("UICommon", "Intel HD Audio", "AudioControllerType"), KAudioControllerType_HDA); 603 list.insert(QApplication::translate("UICommon", "Virtio-Sound", "AudioControllerType"), KAudioControllerType_VirtioSound); 602 604 if (!list.contains(strType)) 603 605 { -
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r101039 r101199 5291 5291 switch (audioController) 5292 5292 { 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. */ 5297 5298 } 5298 5299 } -
trunk/src/VBox/Main/src-server/AudioAdapterImpl.cpp
r98825 r101199 397 397 defaultCodec = AudioCodecType_STAC9221; 398 398 break; 399 case AudioControllerType_VirtioSound: 400 defaultCodec = AudioCodecType_Null; 401 break; 399 402 400 403 default: … … 464 467 if (aAudioCodec != AudioCodecType_STAC9221) 465 468 hrc = E_INVALIDARG; 469 break; 470 } 471 472 case AudioControllerType_VirtioSound: 473 { 474 hrc = E_NOTIMPL; 466 475 break; 467 476 } -
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.