-
Notifications
You must be signed in to change notification settings - Fork 219
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
Set hardware volume based on value in settings.ini. #309
base: develop
Are you sure you want to change the base?
Conversation
I looked at doing this previously but then I left it alone for some reason. Having thought again just now I think it's because I wasn't convinced this change was much better. As I see it, it's all a bit screwed up but maybe I've gotten confused in which case please help put me right. By default we use Mopidy software volume and we also have the system's hardware volume. We stick hardware volume at 96% (and the Pi's onboard audio at 98% but let's ignore that) and the user can use But with this change things are not much better, we now get the effect that setting I think what I'm saying is that we could make it clearer by having a separate hardware volume config setting rather than borrowing Mopidy's as it doesn't really make sense to do so. Or, maybe ideally, we would set Mopidy to use hardware mixing (alsamixer) by default so that the |
I have been using hardware mixing (alsamixer) in Mopidy all along which is why I probably did not make a clear distinction between that and the system hardware volume - the explanation above helped a lot to understand this better, thank you. I agree that having a separate hardware volume (e.g. I haven't fooled around with |
Yes I think so but that doesn't seem too bad. We could maybe have something in the startup script to ensure I bet there is a whole world of elaborate ALSA plugin fun to be had but I'd really rather not. It's a shame though as it would be great to have everything at least appearing to have hardware mixing. |
I've just spent an age trying to get softvol to work but I don't get any audio, just error messages:
So I've lost all interest in that approach. |
The GStreamer error may have been my fault (if you were using the codebase of the equaliser prototype) - there was a problem with the user permissions of /home/mopidy/.alsaequalbin that I've since fixed. On softvol: does setting |
I was using a control file in /tmp with correct permissions so it wasn't Software mixer is Mopidy's volume. I wanted an alsa softvol to sit between
|
I managed to get But now it appears that it is only possible to activate one plugin at a time, and that If we can only have one, then I'd rather go with I've pushed e2d038c which just reverts to using the I'm giving up on the rest. |
Just following up on this PR. I think it would make it easier for users to get the DAC+ and Amp+ up and running with good sound quality out of the box. See: https://discuss.mopidy.com/t/volume-change-on-boot/971/2 and https://discuss.mopidy.com/t/volume-change-on-boot/971/4 - seems to be causing some frustration. |
Not sure why the hardware volume has been hard-coded, it should be preferable to just use the values specified in
settings.ini
to avoid duplication.