Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 70450
Collapse All | Expand All

(-)src/bufferedao.c (-1 / +1 lines)
Lines 142-148 Link Here
142
    self->format.bits = 16;
142
    self->format.bits = 16;
143
    self->format.rate = 44100;
143
    self->format.rate = 44100;
144
    self->format.channels = 2;
144
    self->format.channels = 2;
145
    self->format.byte_format = 2;
145
    self->format.byte_format = 4;    /* platform byte order */
146
146
147
    /* parse parameters... */
147
    /* parse parameters... */
148
    if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iis|iiiiO!", kwlist,
148
    if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iis|iiiiO!", kwlist,
(-)src/services/players/internal.py (-2 / +2 lines)
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")

Return to bug 70450