VirtualBox

Changeset 64332 in vbox for trunk/src


Ignore:
Timestamp:
Oct 20, 2016 2:03:29 PM (8 years ago)
Author:
vboxsync
Message:

Added host audio adapter init.

Location:
trunk/src/VBox/ValidationKit/testdriver
Files:
2 edited

Legend:

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

    r64190 r64332  
    19081908        reporter.log("    AudioController: %s" % (sType));
    19091909        reporter.log("    AudioEnabled: %s" % (oAudioAdapter.enabled));
     1910        if   oAudioAdapter.audioDriver == vboxcon.AudioDriverType_CoreAudio: sType = "CoreAudio";
     1911        elif oAudioAdapter.audioDriver == vboxcon.AudioDriverType_DirectSound: sType = "DirectSound";
     1912        elif oAudioAdapter.audioDriver == vboxcon.AudioDriverType_Pulse: sType = "PulseAudio";
     1913        elif oAudioAdapter.audioDriver == vboxcon.AudioDriverType_OSS: sType = "OSS";
     1914        elif oAudioAdapter.audioDriver == vboxcon.AudioDriverType_Null: sType = "NULL";
     1915        else: sType = "unknown %s" % (oAudioAdapter.audioDriver);
     1916        reporter.log("    Host AudioDriver: %s" % (sType));
    19101917
    19111918        self.processPendingEvents();
  • trunk/src/VBox/ValidationKit/testdriver/vboxwrappers.py

    r63761 r64332  
    20292029
    20302030            oAudioAdapter.audioController = eAudioCtlType;
    2031             oAudioAdapter.audioDriver = vboxcon.AudioDriverType_Null;
     2031
     2032            sHost = utils.getHostOs()
     2033            if   sHost == 'darwin':    oAudioAdapter.audioDriver = vboxcon.AudioDriverType_CoreAudio;
     2034            elif sHost == 'win':       oAudioAdapter.audioDriver = vboxcon.AudioDriverType_DirectSound;
     2035            elif sHost == 'linux':     oAudioAdapter.audioDriver = vboxcon.AudioDriverType_Pulse;
     2036            elif sHost == 'solaris':   oAudioAdapter.audioDriver = vboxcon.AudioDriverType_OSS;
     2037            else:
     2038                reporter.error('Unsupported host "%s".' % (sHost,));
     2039                oAudioAdapter.audioDriver = vboxcon.AudioDriverType_Null;
     2040
    20322041            # Disable by default
    20332042            oAudioAdapter.enabled = False;
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