Changeset 91562 in vbox for trunk/src/VBox
- Timestamp:
- Oct 5, 2021 10:43:35 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/audio/tdAudioTest.py
r91560 r91562 154 154 elif asArgs[iArg] == '--audio-controller-type': 155 155 iArg += 1; 156 if iArg >= len(asArgs): 157 raise base.InvalidOption('Option "%s" needs a value' % (asArgs[iArg - 1])); 156 158 if not self.importVBoxApi(): # So we can use the constant below. 157 159 return iArg + 1; # Just skip stuff. … … 717 719 # Make sure that the VM's audio adapter is configured the way we need it to. 718 720 if self.fpApiVer >= 4.0: 719 if self.enmAudioControllerType: 721 if self.enmAudioControllerType is None: 722 oOsType = oSession.getOsType(); 723 self.enmAudioControllerType = oOsType.recommendedAudioController; 724 else: 720 725 reporter.log('Setting user-defined audio controller type to %d' % (self.enmAudioControllerType)); 721 oSession.setupAudio(self.enmAudioControllerType, 722 fEnable = True, fEnableIn = True, fEnableOut = True); 723 else: 724 oOsType = oSession.getOsType(); 725 oSession.setupAudio(oOsType.recommendedAudioController, 726 fEnable = True, fEnableIn = True, fEnableOut = True); 726 727 oSession.setupAudio(self.enmAudioControllerType, 728 fEnable = True, fEnableIn = True, fEnableOut = True); 727 729 728 730 # Save the settings.
Note:
See TracChangeset
for help on using the changeset viewer.