I'm using Ubuntu 12.04, and when I run
scummvm from terminal I get the following message:
$ scummvm WARNING: Could not open audio device: No available audio device!
This results in some games having no sound, and others crashing when trying to start them. Example when trying to run The Dig (from CD):
User picked target 'dig' (gameid 'dig')... Looking for a plugin supporting this gameid... SCUMM [all games] Starting 'The Dig' WARNING: Sound initialization failed. This may cause severe problems in some games! WARNING: Sound mixer initialization failed! Segmentation fault (core dumped)
I've been searching for a solution but so far couldn't solve this issue. I don't know what is wrong, I had no problem with the sound with other applications, so I don't think it is a hardware issue. A guess, maybe this is related to the
libsdl packages that
I tried compiling the
libsdl libraries from source, and when I run the
./configure it seems I get no support for
pulseaudio. This is an excerpt from the output of the configuration which I think is the part related to audio:
checking for Altivec with GCC -faltivec option... no checking for OSS audio support... yes checking for dmedia audio support... no checking for ALSA CFLAGS... checking for ALSA LDFLAGS... -lasound -lm -ldl -lpthread checking for libasound headers version >= 0.9.0... not present. checking for snd_ctl_open in -lasound... no checking for artsc-config... no checking for esd-config... no checking for ESD - version >= 0.2.8... no *** The esd-config script installed by ESD could not be found *** If ESD was installed in PREFIX, make sure PREFIX/bin is in *** your path, or set the ESD_CONFIG environment variable to the *** full path to esd-config. checking for pkg-config... /usr/bin/pkg-config checking for PulseAudio 0.9 support... no checking audio/audiolib.h usability... no checking audio/audiolib.h presence... no checking for audio/audiolib.h... no checking for AuOpenServer in -laudio... no checking for NAS audio support... no
On a side note, I tried the same on a machine with Ubuntu 12.10 installed, and while I got a different error message (something about the fremabuffer being 1024 instead of 2048, or something like that) it still got an error related to audio. I haven't tried any game on that machine so I don't know how that affects performance.
I found on the Internet old discussions where it seemed that the problem was with the different libraries
libsdl1.2debian-alsa being exclusive with one another and
libsdl1.2debian-all not working correctly, but I searched for those packages and it seems that today there is only one
libsdl1.2debian which says: "This version of SDL is compiled with X11 and caca graphics
drivers and OSS, ALSA, NAS and PulseAudio sound drivers." This post is an example of such old workaround.
Thank you and I hope that someone knows how to fix this issue.