No sound on LZDOOM on RPI4
I think my sound set on RPI4 updated because now lzdoom does not generate sound at all. It used to work fine. I have not performed any updates though I have installed other packages.
lzdoom now generates: AL lib: (EE) ALCplaybackAlsa_mixerProc: Wait timeout... buffer size too low?
After it opened the ALSA Default device.
I read the post here: https://retropie.org.uk/forum/topic/26628/audio-issues-after-latest-raspbian-updates/8
I modified my cmdline.txt to 'revert' back but it looks like these changes are incompatible with lzdoom.
Has anyone else experienced this?
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.
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
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.
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.
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.
Try renaming the
lzdoom.inifile (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:
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.
I found this wiki page: https://zdoom.org/wiki/Compile_ZDoom_on_Raspberry_Pi
I added .alsoftrc to /home/pi and put this in:
mmap = false
And 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?
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.
apulseis 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
lzdoomis not using PulseAudio on the Pi. Are you using a Pi or some other platform ?
Renetrox 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
@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.iniconfiguration 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!