VirtualBox

Ignore:
Timestamp:
Aug 23, 2021 8:22:03 AM (3 years ago)
Author:
vboxsync
Message:

Audio/ValKit: Use "--probe-backends" on the host and guests by default to probe for available audio backends. bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/audio/tdAudioTest.py

    r90772 r90777  
    352352        return fRc;
    353353
    354     def setGstAudioBackend(self, oTestVm, asArgs):
    355         """
    356         Guesses guest OS, uses an alternative (non-default) audio backends if necessary
    357         and appends it to the given arguments sequence.
    358 
    359         Returns the altered arguments sequence.
    360         """
    361         asArgsRet = asArgs;
    362 
    363         # Note: Also works with the 64-bit variants (if any).
    364         sOsType = oTestVm.getNonCanonicalGuestOsType();
    365         if "Windows2000" in sOsType \
    366         or "WindowsXP"   in sOsType \
    367         or "Windows2003" in sOsType \
    368         or "Windows7"    in sOsType:
    369             ## @todo Some more here?
    370             asArgsRet.extend( [ '--backend', 'directsound' ]);
    371 
    372         ## @todo Tweak old(er) Linux'es as well to use OSS instead of PulseAudio?
    373         return asArgsRet;
    374 
    375354    def disableHstFirewall(self):
    376355        """
     
    426405            reporter.log('Using VKAT on guest at \"%s\"' % (sVkatExe));
    427406
    428             asArgs = [ sVkatExe, 'test', '-vv', '--mode', 'guest', \
     407            asArgs = [ sVkatExe, 'test', '-vv', '--mode', 'guest', '--probe-backends', \
    429408                                 '--tempdir', sPathAudioTemp, '--outdir', sPathAudioOut ];
    430 
    431             # Guess the guest backend and apply the new arguments (if any).
    432             asArgs = self.setGstAudioBackend(oTestVm, asArgs);
    433409
    434410            #
     
    479455
    480456        # Build the base command line, exclude all tests by default.
    481         asArgs = [ sVkatExe, 'test', '-vv', '--mode', 'host', '--tempdir', sPathAudioTemp, '--outdir', sPathAudioOut, '-a' ];
     457        asArgs = [ sVkatExe, 'test', '-vv', '--mode', 'host', '--probe-backends' \
     458                             '--tempdir', sPathAudioTemp, '--outdir', sPathAudioOut, '-a' ];
    482459
    483460        # ... and extend it with wanted tests.
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