-
Notifications
You must be signed in to change notification settings - Fork 394
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
Toggle mute/unmute #40
Comments
Good idea! But to save writes on the SD card please set |
Good point, edited my 1st comment accordingly. |
Hi @pheck The second way would be, I tweak it into the code. Which is totally fine, if you prefer that way. The added advantage of the pull request would be: you become an official contributor :) fame! Here is a small "howto". Tell me what you would prefer. All the best, micz |
I'll go with the fame-thing then! :p |
#40-enable mute toggle. vol-up/dn also unmutes if needed
Hi @pheck also I changed a few things:
Please take a look and tell me what you think: |
Hi @MiczFlor, As for your changes: From looking at the code: But for the settings, I'd rather like to see sth. like |
Hi MiczFlor,
I followed your guide and have the system up & running. Thanks for your efforts!
(the components are still spread out accross my desk; fitting them into a nice case will be the harder part ;))
I made two small additions in
~/scripts/playout_controls.sh
mute
command now toggles between mute/unmute,volumeup/-down
commands now also unmutes if needed and starts from the volume level that was set before sound was muted.To do that, I basically just save the current volume level to a file and read it from there if the file is present (=volume was muted), otherwise the commands just work as before.
This is just mimicking the common behaviour from remote controls.
(I've added a cheap 5-button remote
Seki Slim
+ IR-receiverTSOP4838
over GPIO + jumper cables - no soldering, right? - for less than 10€)Code is:
Let me know what you think!
The text was updated successfully, but these errors were encountered: