RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    N64 Audio volumne (SDL vs OMX)

    Scheduled Pinned Locked Moved Help and Support
    n64n64 sound
    7 Posts 2 Posters 3.1k 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.
    • M
      maz
      last edited by

      RPi 3
      4.1 from SD Card
      Currently debugging with keyboad

      I have a portable system with mini speakers. It is important I can change the sound volume depending on where I am. From reading wiki and other posts, the default mupen64plus config uses the omx audio plugin, which is extra loud and has no volume control. Supposedly you can use the SDL audio plugin, which allows for volume control or will at least listen to the master volume control. I update the UI-Console section for the Audio Plugin to be SDL specifically AudioPlugin = "mupen64plus-audio-sdl.so" it gets overwritten back to omx after I first load a rom. I checked the mupen files and the audio-sdl.so is there. I have successfully update the config file with other changes that work. So I know I am writing the file properly.

      LR-Glupen works properly as it uses retroarch, but I have certain games that are only playable on mupen

      BuZzB 1 Reply Last reply Reply Quote 1
      • BuZzB
        BuZz administrators @maz
        last edited by BuZz

        @maz by default it should sdl audio now - try removing all the configs and re-installing.

        To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

        1 Reply Last reply Reply Quote 0
        • BuZzB
          BuZz administrators
          last edited by BuZz

          Actually it's probably the auto config default from an old install you have - make sure in /opt/retropie/configs/all/autoconf.cfg you have mupen64plus_audio = "0"

          This is actually documented here - https://github.com/retropie/retropie-setup/wiki/Nintendo-64#mupen64plus

          To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

          1 Reply Last reply Reply Quote 0
          • BuZzB
            BuZz administrators
            last edited by BuZz

            Checked source history - we used to set SDL as default, but it was set back to omx again - I guess for a good reason (not my change and I'm less familiar with some of the reasons for mupen64 changes). But you can control it from the config above.

            [edit] It was for performance reasons -Use audio-omx as default audio plugin. Games run much faster if audio-omx is used.

            To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

            1 Reply Last reply Reply Quote 1
            • M
              maz
              last edited by

              Thanks, sorry about missing that. I didn't realize that is what that line actual meant. I will remember to look more at in the future.

              Thanks for finding and checking the committ comment for me as well. I figured there had to be a good reason. I will watch and compare performance to see what works best for me.

              I am guessing no way to change volume for omx, it just is what it is?

              BuZzB 1 Reply Last reply Reply Quote 0
              • BuZzB
                BuZz administrators @maz
                last edited by

                @maz not without sourcecode changes at least.

                To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                1 Reply Last reply Reply Quote 0
                • M
                  maz
                  last edited by

                  Let me know if this is way to low a priority or if I should put it in Ideas section.

                  I was looking over the code for [OMX](lhttps://github.com/ricrpi/mupen64plus-audio-omx/blob/master/src/main.c the commit volum section is commented out, saying it doesn't work with Raspberry Pi. I was poking around and it looks like the omx player for raspberry pi which uses OMX as well does support volume control. That code looks to be in C++ instead of C, but has similarities in terms of populating the struct and setting it omxErr = OMX_SetConfig(OMX_Handle, OMX_IndexConfigAudioVolume, &volumeConfig);

                  That line is from omxplayer
                  line 812

                  Any chance OMX was update for RPi and this plugin wasn't aware? My C/C++ skills are out of date especially with linux, so I would not know how to properly get all the source needed to build, make the change. Sadly I have used too much Visual Studio and Windows development. Code would have to be commented out, and also added to call the commented code to increase / decrease.

                  1 Reply Last reply Reply Quote 1
                  • 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.