RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    audiosettings controller-friendly volume mixer

    Scheduled Pinned Locked Moved Ideas and Development
    audioscriptsraspberry pi
    1 Posts 1 Posters 779 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      poulpe38000
      last edited by

      Hi everyone,

      this is my first post here, so please be kind :)

      I follow the Retropie project for quite some time now, and recently I decided to get involved with development and help improving this wonderful platform.

      I had some issues bothering me with the audiosettings script, mainly the unability to quit the alsamixer when using only a controller. I may be unaware of a special key combination to do that, but for now it forced me to plug a keyboard just to click on ESCAPE.

      So I decided to get my hands dirty and wrote a really simple script to adjust the volume with the controller only.

      I tried to stay inside the development guidelines, but my bash skills are not that high so it may need some refinement. you can check the script modifications here :

      https://github.com/RetroPie/RetroPie-Setup/compare/master...poulpe38000:audiosettings-controller_friendly_mixer

      Basically, this script will read the amixer volume info and display it on a simple dialog with a gauge. the user can then adjust the volume using up or down on his controller, and exit the script by pressing either ok or cancel on his controller.

      the amixer read part was a bit tricky for me, so I used this part based on the following script : https://www.dronkert.net/rpi/vol.html (I still need to contact the author to see if he's ok with me using part of his script).

      I don't know really the process for validating a new feature or adding a pull request, so if you have any advice / information regarding the script or the usefulness of it, I'll appreciate it greatly !

      Cheers,

      Poulpe

      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

      Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.