Lines 47-53
Link Here
|
47 |
|
47 |
|
48 |
class aoaudiodev: |
48 |
class aoaudiodev: |
49 |
def __init__(self, aodevice, rate, options): |
49 |
def __init__(self, aodevice, rate, options): |
50 |
self.ao = ao.AudioDevice(aodevice, rate=rate, byte_format=2, options=options) |
50 |
self.ao = ao.AudioDevice(aodevice, rate=rate, byte_format=4, options=options) |
51 |
|
51 |
|
52 |
def play(self, buff, bytes): |
52 |
def play(self, buff, bytes): |
53 |
self.ao.play(buff, bytes) |
53 |
self.ao.play(buff, bytes) |
Lines 184-190
Link Here
|
184 |
|
184 |
|
185 |
# use C version of buffered audio device if present |
185 |
# use C version of buffered audio device if present |
186 |
if bufferedao_present: |
186 |
if bufferedao_present: |
187 |
self.audiodev = bufferedao.bufferedao(bufsize, self.SIZE, aodevice, rate=self.rate, options=aooptions) |
187 |
self.audiodev = bufferedao.bufferedao(bufsize, self.SIZE, aodevice, byte_format=4, rate=self.rate, options=aooptions) |
188 |
# we have to start a new thread for the bufferedao device |
188 |
# we have to start a new thread for the bufferedao device |
189 |
thread.start_new(self.audiodev.start, ()) |
189 |
thread.start_new(self.audiodev.start, ()) |
190 |
log.debug("bufferedao device opened") |
190 |
log.debug("bufferedao device opened") |