{"action":"closed","issue":{"url":"https://api.github.com/repos/larsimmisch/pyalsaaudio/issues/1","labels_url":"https://api.github.com/repos/larsimmisch/pyalsaaudio/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/larsimmisch/pyalsaaudio/issues/1/comments","events_url":"https://api.github.com/repos/larsimmisch/pyalsaaudio/issues/1/events","html_url":"https://github.com/larsimmisch/pyalsaaudio/issues/1","id":73129713,"number":1,"title":"setvolume fails for MIXER_CHANNEL_ALL, 'capture'","user":{"login":"larsimmisch","id":152872,"avatar_url":"https://avatars.githubusercontent.com/u/152872?v=3","gravatar_id":"","url":"https://api.github.com/users/larsimmisch","html_url":"https://github.com/larsimmisch","followers_url":"https://api.github.com/users/larsimmisch/followers","following_url":"https://api.github.com/users/larsimmisch/following{/other_user}","gists_url":"https://api.github.com/users/larsimmisch/gists{/gist_id}","starred_url":"https://api.github.com/users/larsimmisch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larsimmisch/subscriptions","organizations_url":"https://api.github.com/users/larsimmisch/orgs","repos_url":"https://api.github.com/users/larsimmisch/repos","events_url":"https://api.github.com/users/larsimmisch/events{/privacy}","received_events_url":"https://api.github.com/users/larsimmisch/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-04T21:17:24Z","updated_at":"2015-05-04T21:19:33Z","closed_at":"2015-05-04T21:19:33Z","body":"This was SF issue #13 from Hugh Secker-Walker\r\n\r\n> This always throws a exception:\r\n> mixer.setvolume(100, alsaaudio.MIXER_CHANNEL_ALL, 'capture')\r\n> whereas using a channel of 0 or 1 succeeds for my stereo USB mic\r\n> Looking at the code I see that channel = -1 (MIXER_CHANNEL_ALL) is not honored when setting capture volume.\r\n> In pyalsaaudio-0.7/alsaaudio.c:1768\r\n> && snd_mixer_selem_has_capture_channel(elem, channel)\r\n> should be\r\n> && snd_mixer_selem_has_capture_channel(elem, i)"}}