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

    No sound on LZDOOM on RPI4

    Scheduled Pinned Locked Moved Help and Support
    alsadoomlzdoomsound
    21 Posts 4 Posters 5.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.
    • BuZzB
      BuZz administrators
      last edited by

      More info about your system would be useful. Which change did you make to cmdline.txt? Using built in audio? Please fill out info as detailed in link in my signature

      I'll test lzdoom but it worked last time I tried on my rpi4.

      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

      R 1 Reply Last reply Reply Quote 0
      • R
        RussellB @BuZz
        last edited by

        @BuZz

        The first post in the link I mentioned said to 'revert' back to the settings by adding this to cmdline.txt:

        snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_compat_alsa=1

        I did that and it didn't do anything for lzdoom. I tested multiple emulators, BGM, ES and they all have sound except for lzdoom.

        I'm using built-in audio, HDMI.

        Pi Model or other hardware: 4, 4GB
        Power Supply used: 5.1V, 3000mA
        RetroPie Version Used: 4.5.18
        Built From: Buster Base
        USB Devices connected: USB keyboard and mouse, 2TB WD Essentials 3.0 drive
        Controller used: 2 Logitech F710 controllers
        Error messages received: AL lib: (EE) ALCplaybackAlsa_mixerProc: Wait timeout... buffer size too low?
        Verbose log (if relevant): No
        Guide used: No
        File: N/A
        Emulator: lzdoom

        I ran into this issue when I did a firmware and OS update and I ended up reverting back to an older OS. I think lzdoom is making some bad assumption about the default ALSA sound device.

        RussellB

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

          Remove any added lines, and do an update of packages

          sudo apt update: sudo apt dist-upgrade

          I will test lzdoom shortly if it's at fault.

          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

            You installed manually btw? How are you starting emulationstation?

            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

              Sound works fine here with lzdoom btw. Kernel 5.4.51 / rpi4 with no changes to audio settings.

              I will need more info and examples of logs to advise. An install log for lzdoom also as it gives some info on kernel etc. Can use a pastebin site for logs.

              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

                Sorry. Just noticed your retropie is also massively out of date, I recommend updating.

                [Correction - not massively, but your kernel may be out of date also]

                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
                • R
                  RussellB
                  last edited by RussellB

                  I updated the kernel to 5.4.59-v8+, as well as the OS and the issue is still happening.

                  Here is my runcommand.log: https://pastebin.com/9uMpK3WG
                  and aplay -l: https://pastebin.com/HYrNYXQ0

                  It looks like lzdoom can't open the default device anymore. I'll try building lzdoom from source and see if that makes a difference.

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

                    Try renaming the lzdoom.ini file (should be visible in \\retropie\configs\ports\doom) and re-starting the game again.

                    RenetroxR 1 Reply Last reply Reply Quote 0
                    • R
                      RussellB
                      last edited by RussellB

                      Same thing. No sound.

                      Without lzdoom.ini here is the runcommand.log: https://pastebin.com/W7XUaRTi

                      :(

                      I'm now also getting this message:

                      "lvl0: VolumeControl::init() - Failed to find mixer elements!"

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

                        So following this thread:

                        https://retropie.org.uk/forum/topic/23954/audio-not-working-rpi3b

                        I was able to fix this message I was encountering:

                        ALSA lib control.c:1373:(snd_ctl_open_noupdate) Invalid CTL hdmi
                        1v10: VolumeControl::init() - Failed to attach to default card!

                        lzdoom is the only software that is having a problem with sound. Splash screen, BGM, ES videos and other games I've tested all work.

                        1 Reply Last reply Reply Quote 0
                        • R
                          RussellB
                          last edited by

                          For posterity...

                          I found this wiki page: https://zdoom.org/wiki/Compile_ZDoom_on_Raspberry_Pi

                          I added .alsoftrc to /home/pi and put this in:

                          [alsa]
                          mmap = false

                          And voila... all sounds and music came back.

                          I hope this helps someone. It was driving me crazy.

                          1 Reply Last reply Reply Quote 2
                          • RenetroxR
                            Renetrox @mitu
                            last edited by

                            @mitu this is related to pulseaudio. I discovered that I can use "apulse", just type in terminal: apulse lzdoom to have sound with pulseaudio uninstalled, but ... How do I create a shortcut for emulationstation telling it to use "apulse" together with the game?

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

                              @renetrox said in No sound on LZDOOM on RPI4:

                              How do I create a shortcut for emulationstation telling it to use "apulse" together with the game?

                              I'm not sure your issue is related to the error reported in this topic. apulse is a 'fake PulseAudio' implementation for programs that need PulseAudio - the fact that a program needs it means it was compiled with PulseAudio and expects it to use it - but lzdoom is not using PulseAudio on the Pi. Are you using a Pi or some other platform ?

                              RenetroxR 1 Reply Last reply Reply Quote 0
                              • RenetroxR
                                Renetrox @mitu
                                last edited by Renetrox

                                @mitu Lzdoom does not produce any sound without pulseaudio. I have tried all kinds of proposed solutions for that problem, that's why I got to "apulse" because I discovered that it emitted sound by analog when I installed pulseaudio. This on a raspberry pi 3b

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

                                  @renetrox Looks like a different problem then the one in this topic, so I advise to open a separate topic, add the info requested in https://retropie.org.uk/forum/topic/3/read-this-first and post the lzdoom.ini configuration file (use pastebin.com for posting the file, since it's quite large).

                                  RenetroxR 3 Replies Last reply Reply Quote 0
                                  • RenetroxR
                                    Renetrox @mitu
                                    last edited by

                                    @mitu I appreciate your answer, but I don't think it goes out of context. lZdoom has no sound. I applied the solution proposed here without success, that's why I shared my experience. If you can't tell me how to create an access in emulationstation telling the system to use "apulse" then there isn't much to add. At the moment I don't directly use that emulator, I wanted it for action doom 2 and brutal doom, I can live without that;)
                                    i will share the lzdoom.ini file in case it helps anyone

                                    RenetroxR 2 Replies Last reply Reply Quote 0
                                    • RenetroxR
                                      Renetrox @Renetrox
                                      last edited by

                                      This post is deleted!
                                      1 Reply Last reply Reply Quote 0
                                      • RenetroxR
                                        Renetrox @Renetrox
                                        last edited by

                                        @renetrox https://pastebin.com/me3a1JNV

                                        1 Reply Last reply Reply Quote 0
                                        • RenetroxR
                                          Renetrox @mitu
                                          last edited by

                                          This post is deleted!
                                          1 Reply Last reply Reply Quote 0
                                          • RenetroxR
                                            Renetrox @mitu
                                            last edited by

                                            @mitu solution: create a script with the following:
                                            #! / bin / bash
                                            "apulse / opt / retropie / ports / lzdoom / lzdoom" ""

                                            It doesn't work like the other games on the list, but it opens the traditional lzdoom text dialog, the wads should be hosted in ./.config/lzdoom

                                            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.