mirror of
https://github.com/larsimmisch/pyalsaaudio.git
synced 2026-06-03 11:57:01 +00:00
@@ -1977,6 +1977,15 @@ alsamixer_getvolume(alsamixer_t *self, PyObject *args)
|
||||
|
||||
elem = alsamixer_find_elem(self->handle,self->controlname,self->controlid);
|
||||
|
||||
if (!pcmtypeobj || (pcmtypeobj == Py_None)) {
|
||||
if (self->pchannels) {
|
||||
pcmtype = SND_PCM_STREAM_PLAYBACK;
|
||||
}
|
||||
}
|
||||
else {
|
||||
pcmtype = SND_PCM_STREAM_CAPTURE;
|
||||
}
|
||||
|
||||
result = PyList_New(0);
|
||||
|
||||
for (channel = 0; channel <= SND_MIXER_SCHN_LAST; channel++) {
|
||||
|
||||
Reference in New Issue
Block a user