]> git.0d.be Git - jack_mixer.git/commitdiff
Fix creating mono channels
authorArnout Engelen <arnouten@bird.(none)>
Tue, 29 Dec 2009 22:34:02 +0000 (23:34 +0100)
committerArnout Engelen <arnouten@bird.(none)>
Tue, 29 Dec 2009 22:34:02 +0000 (23:34 +0100)
it appears the 'stereo' flag is recognised better when treated like an int
instead of a bool..

jack_mixer_c.c

index 049a2b2339d1f29306fea6627cd37990dee43192..cab58701c51f591d303f46e4e20a671f5ca08e70 100644 (file)
@@ -828,7 +828,7 @@ Mixer_add_channel(MixerObject *self, PyObject *args)
        int stereo;
        jack_mixer_channel_t channel;
 
-       if (! PyArg_ParseTuple(args, "sb", &name, &stereo)) return NULL;
+       if (! PyArg_ParseTuple(args, "si", &name, &stereo)) return NULL;
 
        channel = add_channel(self->mixer, name, (bool)stereo);