Changeset 91055 in vbox
- Timestamp:
- Sep 1, 2021 10:41:30 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vboxwrappers.py
r90244 r91055 2165 2165 return True; 2166 2166 2167 def setupAudio(self, eAudioControllerType, fEnable = True, eAudioDriverType = None):2167 def setupAudio(self, eAudioControllerType, fEnable = True, fEnableIn = False, fEnableOut = True, eAudioDriverType = None): 2168 2168 """ 2169 2169 Sets up audio. … … 2171 2171 :param eAudioControllerType: The audio controller type (vboxcon.AudioControllerType_XXX). 2172 2172 :param fEnable: Whether to enable or disable the audio controller (default enable). 2173 :param fEnableIn: Whether to enable or disable audio input (default disable). 2174 :param fEnableOut: Whether to enable or disable audio output (default enable). 2173 2175 :param eAudioDriverType: The audio driver type (vboxcon.AudioDriverType_XXX), picks something suitable 2174 2176 if None is passed (default). … … 2196 2198 except: return reporter.errorXcpt('Failed to set the "enabled" property to %s.' % (fEnable,)); 2197 2199 2198 reporter.log('set audio adapter type to %d, driver to %d, and enabled to %s' 2199 % (eAudioControllerType, eAudioDriverType, fEnable,)); 2200 try: oAudioAdapter.enabledIn = fEnableIn; 2201 except: return reporter.errorXcpt('Failed to set the "enabledIn" property to %s.' % (fEnable,)); 2202 2203 try: oAudioAdapter.enabledOut = fEnableOut; 2204 except: return reporter.errorXcpt('Failed to set the "enabledOut" property to %s.' % (fEnable,)); 2205 2206 reporter.log('set audio adapter type to %d, driver to %d, and enabled to %s (input is %s, output is %s)' 2207 % (eAudioControllerType, eAudioDriverType, fEnable, fEnableIn, fEnableOut,)); 2200 2208 self.oTstDrv.processPendingEvents(); 2201 2209 return True;
Note:
See TracChangeset
for help on using the changeset viewer.

