-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unpredictable results when getting mute state #7
Comments
All catched |
I've run with Here's the full log file, just for the sake of completeness: mopidy-debug.log.txt. If def get_mute(self):
try:
channels_muted = self._mixer.getmute()
except alsaaudio.ALSAAudioError as exc:
logger.debug('Getting mute state failed: %s', exc)
return None
if all(channels_muted):
return True
elif not any(channels_muted):
return False
else:
# Not all channels have the same mute state
return None |
...I'm running Mopidy on a RaspberryPi B+ with MusicBox and a HiFiBerry Amp+ installed. |
...and here's the relevant section of the MusicBox settings.ini file:
It looks like |
Oops - I was running The only other variable that I can think of is the HifiBerry Amp+... |
This is what screen looks like when running I can't seem to toggle mute on 'Master' or any of the channels by pressing 'M', but |
What does the following print?
``` python
import alsaaudio
mixer = alsaaudio.Mixer(cardindex=2, control='Master')
print mixer.getmute()
```
…On Mon, Feb 13, 2017, 07:09 John Cass ***@***.***> wrote:
This is what screen looks like when running alsamixer:
[image: skitched-20170213-074159]
<https://cloud.githubusercontent.com/assets/10268911/22872198/e8df1060-f1bf-11e6-8a40-e45be2daaeed.png>
I can't seem to toggle mute on 'Master' or any of the channels by pressing
'M', but amixer cset numid=1 off or amixer cset numid=2 off works.
Perhaps muting is just not supported in alsamixer for this card (which may
just not have a hardware mute option)?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACqzgklF9wuT9c_IAOjVmVrTbjR72rzks5rb_OrgaJpZM4HRgrQ>
.
|
>>> import alsaaudio
>>> mixer = alsaaudio.Mixer(cardindex=2, control='Master')
>>> print mixer.getmute()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
alsaaudio.ALSAAudioError: Mixer Master,0 has no playback switch capabilities, [hw:2]
>>> |
I can't seem to get the mute/unmute functionality to work on my Raspberry Pi setup, using the latest versions of the Mopidy-Mobile and Mopidy-Musicbox-Webclient extensions.
The buttons do not respond when you click on them, and there is nothing in the logs.
Looking at the implementation of
get_mute()
I suspect that the method returnsNone
for some reason but am not sure why.Perhaps a first step would be to update the implementation so that all exceptions are propagated to
core.mixer.MixerController
so that they can be logged?The text was updated successfully, but these errors were encountered: