1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- /var/tmp/portage/point2play-1.3.1/work/usr/lib/transgaming_point2play/tests/test_sound.py.orig 2004-08-14 01:22:11.956853792 -0400
+++ /var/tmp/portage/point2play-1.3.1/work/usr/lib/transgaming_point2play/tests/test_sound.py 2004-08-14 01:22:20.241594320 -0400
@@ -40,15 +40,13 @@
# OSS Portion of the test
#
try:
- audio_out = ossaudiodev.open('/dev/dsp', 'w')
+ audio_out = ossaudiodev.open('w')
except IOError, e:
OSSResult = ((_('OSS Sound Support'), _('Unable to open /dev/dsp'), 'red'))
if audio_out:
try:
- audio_out.setparameters(TestSound1.getframerate(), 16,
- TestSound1.getnchannels(), ossaudiodev.AFMT_S16_LE, False)
- #FIXME: use getsampwidth for 16 and AFMT_S16_LE
+ audio_out.setparameters(ossaudiodev.AFMT_S16_LE, TestSound1.getnchannels(), TestSound1.getframerate())
except:
audio_out.close()
OSSResult = ((_('OSS Sound Support'), _('Unable to play sound, your\nSound card may not be configured correctly'), 'red'))
|