VirtualBox

Changeset 103529 in vbox


Ignore:
Timestamp:
Feb 22, 2024 11:36:39 AM (12 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
161872
Message:

Validation Kit: Try using AudioDriverType_Default for >= 7.1 in SessionWrapper::setupAudio() if no audio driver is explicitly specified, to also test the default handling.

File:
1 edited

Legend:

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

    r103085 r103529  
    23992399
    24002400        if eAudioDriverType is None:
    2401             sHost = utils.getHostOs()
    2402             if   sHost == 'darwin':    eAudioDriverType = vboxcon.AudioDriverType_CoreAudio;
    2403             elif sHost == 'win':       eAudioDriverType = vboxcon.AudioDriverType_DirectSound;
    2404             elif sHost == 'linux':     eAudioDriverType = vboxcon.AudioDriverType_Pulse;
    2405             elif sHost == 'solaris':   eAudioDriverType = vboxcon.AudioDriverType_OSS;
    2406             else:
    2407                 reporter.error('PORTME: Do not know which audio driver to pick for: %s!' % (sHost,));
    2408                 eAudioDriverType = vboxcon.AudioDriverType_Null;
     2401            if self.fpApiVer >= 7.1:
     2402                eAudioDriverType = vboxcon.AudioDriverType_Default;
     2403            else:
     2404                sHost = utils.getHostOs()
     2405                if   sHost == 'darwin':    eAudioDriverType = vboxcon.AudioDriverType_CoreAudio;
     2406                elif sHost == 'win':       eAudioDriverType = vboxcon.AudioDriverType_DirectSound;
     2407                elif sHost == 'linux':     eAudioDriverType = vboxcon.AudioDriverType_Pulse;
     2408                elif sHost == 'solaris':   eAudioDriverType = vboxcon.AudioDriverType_OSS;
     2409                else:
     2410                    reporter.error('PORTME: Do not know which audio driver to pick for: %s!' % (sHost,));
     2411                    eAudioDriverType = vboxcon.AudioDriverType_Null;
    24092412
    24102413        try:    oAdapter.audioDriver = eAudioDriverType;
     
    24202423        except: return reporter.errorXcpt('Failed to set the "enabledOut" property to %s.' % (fEnable,));
    24212424
    2422         reporter.log('set audio adapter type to %d, driver to %d, and enabled to %s (input is %s, output is %s)'
     2425        reporter.log('set audio controller type to %d, driver to %d, and enabled to %s (input is %s, output is %s)'
    24232426                     % (eAudioControllerType, eAudioDriverType, fEnable, fEnableIn, fEnableOut,));
    24242427        self.oTstDrv.processPendingEvents();
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