-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add support for alsa mixer volume #36
Comments
Hello, thank you very much for this! I am in the process of refactoring the linux audio driver to allow for better crossfade / gapless capabilities. I'll keep this in mind so that it can be implemented at some point. |
Another nice-to-have would be if the spotify-internal volume would be set to the mixer volume on connect or at least on startup of the daemon. Edit: Also, let me know when you are done with your refactoring work, I'll be happy to implement the feature myself. |
@tooxo I've just implemented this (sorry didn't see your note about implementing it yourself in time). It seems to be working pretty good, let me know if there's any mistake in the implementation or things I didn't think of. I am not really an expert at ALSA stuff. Edit: I have just noticed that the string passed to |
@devgianlu Thank you for implementing! The string passed to I like your implementation, but for my use-case it would be even better if the program doesn't touch the alsa mixer volume once, but sets the volume of spotify to the current alsa volume maybe while connecting or during startup. Synchronization with the alsa mixer could also be realized with callbacks, which are also supported. I am still interested in helping, if anything comes up! |
Yeah I had this feeling, I have moved it to a separate configuration variable for better customization. I didn't initially realize what you meant for the synchronization of the volume: perhaps that could be a separate issue considering it requires some additional tinkering (especially because of callbacks I imagine). Or feel free to open a PR directly if you feel confident about it! Only thing I know already is that we may want it to be toggleable from the configuration (opt in / opt out?). |
@devgianlu I'll look what I can do, but it all should definitely be opt-in, because it can create some really mysterious errors if your alsa configuration is funky. |
Take your time! Closing this for now, feel free to re-open if you find out any problem with the current implementation. |
Right now, if the "external volume" configuration option is enabled, the spotify volume slider does nothing, so I propose that it at least should be possible to update the volume of for example an alsa mixer.
I have written a short snippet on how it could be implemented, but I am not sure how to implement it into the project without creating a mess.
The text was updated successfully, but these errors were encountered: