Changeset 103529 in vbox
- Timestamp:
- Feb 22, 2024 11:36:39 AM (12 months ago)
- svn:sync-xref-src-repo-rev:
- 161872
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vboxwrappers.py
r103085 r103529 2399 2399 2400 2400 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; 2409 2412 2410 2413 try: oAdapter.audioDriver = eAudioDriverType; … … 2420 2423 except: return reporter.errorXcpt('Failed to set the "enabledOut" property to %s.' % (fEnable,)); 2421 2424 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)' 2423 2426 % (eAudioControllerType, eAudioDriverType, fEnable, fEnableIn, fEnableOut,)); 2424 2427 self.oTstDrv.processPendingEvents();
Note:
See TracChangeset
for help on using the changeset viewer.