VirtualBox

Changeset 91055 in vbox


Ignore:
Timestamp:
Sep 1, 2021 10:41:30 AM (3 years ago)
Author:
vboxsync
Message:

Audio/Validation Kit: Make sure to always enable input / output in the VM's audio adapter via the test driver [build fix, forgot a file]. ​bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/vboxwrappers.py

    r90244 r91055  
    21652165        return True;
    21662166
    2167     def setupAudio(self, eAudioControllerType, fEnable = True, eAudioDriverType = None):
     2167    def setupAudio(self, eAudioControllerType, fEnable = True, fEnableIn = False, fEnableOut = True, eAudioDriverType = None):
    21682168        """
    21692169        Sets up audio.
     
    21712171        :param eAudioControllerType:    The audio controller type (vboxcon.AudioControllerType_XXX).
    21722172        :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).
    21732175        :param eAudioDriverType:        The audio driver type (vboxcon.AudioDriverType_XXX), picks something suitable
    21742176                                        if None is passed (default).
     
    21962198        except: return reporter.errorXcpt('Failed to set the "enabled" property to %s.' % (fEnable,));
    21972199
    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,));
    22002208        self.oTstDrv.processPendingEvents();
    22012209        return True;
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