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

    Strange issue with sound not working in DOSbox and also Ports

    Scheduled Pinned Locked Moved Help and Support
    retropiesound issueaudiodosboxports
    16 Posts 2 Posters 1.4k 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.
    • R
      reaktor24 @mitu
      last edited by

      @mitu

      Hi mitu

      I created a new config file with these settings:

      sudo nano /etc/modprobe.d/alsa-base.conf

      options snd_usb_audio index=0
      options snd_bcm2835 index=1
      options snd slots=snd-usb-audio,snd-bcm2835

      I've also been looking at this page: https://retropie.org.uk/docs/Sound-Issues/

      I've turned off the on-board sound chip by editing the boot config.txt file and commenting out the dtparam=audio=on and adding the following:

      dtparam=audio=off

      Of course, now I get no sound at all. Is the cable I'm using just a pass through? I thought it had an audio processor built in. It is a small red cable from Amazon with 'JSAUX' on the female 3.5mm connector end. I guess it's just passing the audio through to the speakers.

      mituM 1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator @reaktor24
        last edited by

        @reaktor24 said in Strange issue with sound not working in DOSbox and also Ports:

        sudo nano /etc/modprobe.d/alsa-base.conf
        
        options snd_usb_audio index=0
        options snd_bcm2835 index=1
        options snd slots=snd-usb-audio,snd-bcm2835
        

        The snd_bcm2835 module doesn't support the index parameter.

        I've also been looking at this page: https://retropie.org.uk/docs/Sound-Issues/

        I've turned off the on-board sound chip by editing the boot config.txt file and commenting out the dtparam=audio=on and adding the following:

        dtparam=audio=off
        

        That should work better than the alsa config.

        Of course, now I get no sound at all. Is the cable I'm using just a pass through? I thought it had an audio processor built in. It is a small red cable from Amazon with 'JSAUX' on the female 3.5mm connector end. I guess it's just passing the audio through to the speakers.

        A link to the product page would be useful. Also, if you run

        aplay -l
        

        it should list the audio cards present in the system. If the list is empty, then the USB gadget you have is not an USB audio card.

        R 1 Reply Last reply Reply Quote 0
        • R
          reaktor24 @mitu
          last edited by

          @mitu

          running 'aplay -l' I get

          **** List of PLAYBACK Hardware Devices ***
          Card 0: Audio [USB Audio], device 0: USB Audio [USB Audio]
          Subdevices: 1/1
          Subdevice #0: subdevice #0

          So I guess I just need to find the right settings in emulation station. No combination seems to work properly though.

          mituM 1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @reaktor24
            last edited by mitu

            @reaktor24 said in Strange issue with sound not working in DOSbox and also Ports:

            **** List of PLAYBACK Hardware Devices ***
            Card 0: Audio [USB Audio], device 0: USB Audio [USB Audio]
            Subdevices: 1/1
            Subdevice #0: subdevice #0

            OK, so there's just one audio card present, so there's no additional settings needed for the emulators/ports (but see below).

            So I guess I just need to find the right settings in emulation station. No combination seems to work properly though.

            Settings in EmulationStation are only for the front-end itself, they don't set the audio/sound for emulators/ports/etc. Use the Audio menu in the RetroPie system and reset the audio settings to default, this should ensure any previous settings you had are no longer applied.

            R 1 Reply Last reply Reply Quote 0
            • R
              reaktor24 @mitu
              last edited by reaktor24

              @mitu

              Hi thanks for the reply. So the Audio option in the Retropie menu doesn't work as I've disabled the on-board sound chip. I just get the following error:

              On-board audio disabled or not present

              Do I have to re-enable it?

              I'm also noticing errors before this which show up quickly in the terminal screen:

              June 20 16:30:59 lvl0: VolumeControl::Init() - Failed to Attach to default card!
              June 20 16:31:00 lvl0: AudioManager error - Unable to open SDL audio: ALSA: Couldn't open audio device: No such file or directory

              mituM 1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator @reaktor24
                last edited by

                @reaktor24 said in Strange issue with sound not working in DOSbox and also Ports:

                Do I have to re-enable it?

                No. Remove the user config file for ALSA ($HOME/.asoundrc) and see if you get proper audio in emulators/ports/etc.

                R 1 Reply Last reply Reply Quote 0
                • R
                  reaktor24 @mitu
                  last edited by

                  @mitu said in Strange issue with sound not working in DOSbox and also Ports:

                  @reaktor24 said in Strange issue with sound not working in DOSbox and also Ports:

                  Do I have to re-enable it?

                  No. Remove the user config file for ALSA ($HOME/.asoundrc) and see if you get proper audio in emulators/ports/etc.

                  There doesn't seem to be any such file. I did find 'asound.conf' inside the 'etc' directory

                  Inside this there is:

                  defaults.pcm.card 1
                  defaults.ctl.card 1

                  I also seem to have something called 'PulseAudio' installed. Not sure if that is the thing causing problems.

                  mituM 1 Reply Last reply Reply Quote 0
                  • mituM
                    mitu Global Moderator @reaktor24
                    last edited by

                    @reaktor24 said in Strange issue with sound not working in DOSbox and also Ports:

                    .
                    

                    There doesn't seem to be any such file. I did find 'asound.conf' inside the 'etc' directory

                    [..]

                    There is no such file on a default RetroPie install - did you add it yourself ?

                    I also seem to have something called 'PulseAudio' installed. Not sure if that is the thing causing problems

                    Yeah, that can cause issues. Did you also installed it yourself ?

                    R 1 Reply Last reply Reply Quote 0
                    • R
                      reaktor24 @mitu
                      last edited by

                      @mitu

                      Yes I believe I installed the Pulse Audio myself a few months ago when I was getting the VolumeControl error then. I remember it did seem to fix the issue but I think I must have still been using the internal sound chip. Shall I remove these from my Retropie system?

                      mituM 1 Reply Last reply Reply Quote 0
                      • mituM
                        mitu Global Moderator @reaktor24
                        last edited by

                        @reaktor24 said in Strange issue with sound not working in DOSbox and also Ports:

                        Shall I remove these from my Retropie system?

                        Yes, you should. Both PulseAudio and the .conf file you mention earlier, it shouldn't be needed. After that, reboot and check that your sound works and alsamixer can modify the volume.

                        R 1 Reply Last reply Reply Quote 0
                        • R
                          reaktor24 @mitu
                          last edited by

                          @mitu said in Strange issue with sound not working in DOSbox and also Ports:

                          @reaktor24 said in Strange issue with sound not working in DOSbox and also Ports:

                          Shall I remove these from my Retropie system?

                          Yes, you should. Both PulseAudio and the .conf file you mention earlier, it shouldn't be needed. After that, reboot and check that your sound works and alsamixer can modify the volume.

                          Okay I've removed the .conf file as well as the pulse folder from etc. I tried to remove the pulseaudio application but it said no such application was installed.

                          Still same VolumeControl errors in Retropie though.

                          mituM 1 Reply Last reply Reply Quote 0
                          • mituM
                            mitu Global Moderator @reaktor24
                            last edited by

                            @reaktor24 said in Strange issue with sound not working in DOSbox and also Ports:

                            Still same VolumeControl errors in Retropie though.

                            That's EmulationStation, not RetroPie. Do you have sound/audio in emulators/ports/Dosbox ?

                            For the error in EmulationStation, you need to set the right Audio settings

                            • Audio Card: set it to Default
                            • Audio Device: set it to PCM or Master and see if you still get the error.

                            If you still get the error, run aplay -L and post the output.

                            R 1 Reply Last reply Reply Quote 0
                            • R
                              reaktor24 @mitu
                              last edited by

                              @mitu

                              output is as follows:

                              null
                              Discard all samples (playback) or generate zero samples (capture)
                              default
                              output
                              sysdefault:CARD=Audio
                              USB Audio, USB Audio
                              Default Audio Device

                              front:CARD=Audio, DEV=0
                              USB Audio, USB Audio
                              Front Speakers

                              surround21:CARD=Audio, DEV=0
                              USB Audio, USB Audio
                              2.1 Surround output to Front and Subwoofer speakers

                              surround40:CARD=Audio, DEV=0
                              USB Audio, USB Audio
                              4.0 Surround output to Front and Rear speakers

                              surround41:CARD=Audio, DEV=0
                              USB Audio, USB Audio
                              4.1 Surround output to Front, Rear and Subwoofer speakers

                              surround50:CARD=Audio, DEV=0
                              USB Audio, USB Audio
                              5.0 Surround output to Front, Center and Rear speakers

                              surround51:CARD=Audio, DEV=0
                              USB Audio, USB Audio
                              5.1 Surround output to Front, Center, Rear and Subwoofer speakers

                              surround71:CARD=Audio, DEV=0
                              USB Audio, USB Audio
                              7.1 Surround output to Front, Center, Side, Rear and Woofer speakers

                              iec958:CARD=Audio, DEV=0
                              USB Audio, USB Audio
                              IEC958 (S/PDIF) Digital Audio Output

                              dmix:CARD=Audio, DEV=0
                              USB Audio, USB Audio
                              Direct sample mixing device

                              dsnoop:CARD=Audio, DEV=0
                              USB Audio, USB Audio
                              Direct sample snooping device

                              hw:CARD=Audio, DEV=0
                              USB Audio, USB Audio
                              Direct hardware device without any conversions

                              plughw:CARD=Audio, DEV=0
                              USB Audio, USB Audio
                              Hardware device with all software conversions

                              1 Reply Last reply Reply Quote 0
                              • mituM
                                mitu Global Moderator
                                last edited by

                                You should change the Audio Device in EmulationStation's settings to one of the entries listed by aplay. If you the option doesn't show up in the menu, then edit es_settings directly and fill in the AudioDevice there.

                                front:CARD=Audio, DEV=0
                                USB Audio, USB Audio
                                Front Speakers

                                surround21:CARD=Audio, DEV=0
                                USB Audio, USB Audio
                                2.1 Surround output to Front and Subwoofer speakers

                                surround40:CARD=Audio, DEV=0
                                USB Audio, USB Audio
                                4.0 Surround output to Front and Rear speakers

                                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.