forked from auracaster/pyalsaaudio
Fix logic error, whitespace
This commit is contained in:
@@ -1574,7 +1574,8 @@ alsamixer_getrange(alsamixer_t *self, PyObject *args)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
elem = alsamixer_find_elem(self->handle,self->controlname,self->controlid);
|
||||
elem = alsamixer_find_elem(self->handle, self->controlname,
|
||||
self->controlid);
|
||||
|
||||
if (!pcmtypeobj || (pcmtypeobj == Py_None))
|
||||
{
|
||||
@@ -1586,7 +1587,7 @@ alsamixer_getrange(alsamixer_t *self, PyObject *args)
|
||||
}
|
||||
}
|
||||
|
||||
if (pcmtype == SND_PCM_STREAM_CAPTURE)
|
||||
if (pcmtype == SND_PCM_STREAM_PLAYBACK)
|
||||
{
|
||||
if (snd_mixer_selem_has_playback_channel(elem, 0))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user