No sound on LZDOOM on RPI4
-
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: lzdoomI 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
-
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.
-
You installed manually btw? How are you starting emulationstation?
-
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.
-
Sorry. Just noticed your retropie is also
massivelyout of date, I recommend updating.[Correction - not massively, but your kernel may be out of date also]
-
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/HYrNYXQ0It looks like lzdoom can't open the default device anymore. I'll try building lzdoom from source and see if that makes a difference.
-
Try renaming the
lzdoom.ini
file (should be visible in\\retropie\configs\ports\doom
) and re-starting the game again. -
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!"
-
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.
-
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 = falseAnd voila... all sounds and music came back.
I hope this helps someone. It was driving me crazy.
-
@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?
-
@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 - butlzdoom
is not using PulseAudio on the Pi. Are you using a Pi or some other platform ? -
@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
-
@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). -
@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 -
This post is deleted! -
-
This post is deleted! -
@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
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.