Page 1 of 1

HOWTO: Get SDL Audio in LMDE 64bit

Posted: Tue May 22, 2012 6:24 pm
by fixus971
In LMDE 64bit repo there isn't 32bit libs for SDL audio via asound2-plugins.
Tipical error that we can get is:

Code: Select all

ALSA lib ../../src/conf.c:3314:(snd_config_hooks_call) Cannot open shared library libasound_module_conf_pulse.so
ALSA lib ../../../src/pcm/pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM default
Solution: Download and install this package: :wink:
Package: lib32asound2-plugins (1.0.23-1 and others)
ALSA library additional plugins (32 bit)
"This package contains plugins for the 32 bit ALSA library that are not included in the main lib32asound2 package. "
Download library from:
http://packages.debian.org/squeeze/lib32asound2-plugins
Install using GDebi (from mint menu)

Now launching (SDL game) we get this messages but we get our audio! :P

Code: Select all

./galactic_magnate
ALSA lib ../../src/conf.c:1220:(parse_def) show is not a compound
ALSA lib ../../src/conf.c:1686:(snd_config_load1) _toplevel_:24:26:Unexpected char
ALSA lib ../../src/conf.c:3406:(config_file_open) /usr/share/alsa/pulse-alsa.conf may be old or corrupted: consider to remove or fix it

Re: HOWTO: Get SDL Audio in LMDE 64bit

Posted: Sun May 27, 2012 11:24 am
by crborga
this also works for getting sound in wine

Re: HOWTO: Get SDL Audio in LMDE 64bit

Posted: Sun Jul 15, 2012 12:48 pm
by dudedude1
This is not HOW-TO. This is a BUG.

The bug is: LMDE 64bit is missing 32bit SDL-libraries (lib32asound2-plugins) from repository, that are necessary if one is to launch any 32bit game or application. The most favorite one being WINE, followed by ANY closed-source application which exists in 32bit version, even if its native.

For WINE, this particularly results in WINE completely unable to play sound along with pulse audio, or wine having no sound at all if any pulse application was already launched, or wine blocking ANY sound if is running.
It is also funny, because its hard to figure out the problem - you need to launch the application in console and watch the log.

The conflict results from WINE incapable to grab pulse (libasound_module_conf_pulse.so), so it fallbacks to default device - and this device is RAW hardware, which in turn renders pulseaudio inoperational.

The solution to this is to include "lib32asound2-plugins" in LMDE repository. Please do it!

Also:
fixus971 wrote:Now launching (SDL game) we get this messages but we get our audio! :P

Code: Select all

./galactic_magnate
ALSA lib ../../src/conf.c:1220:(parse_def) show is not a compound
ALSA lib ../../src/conf.c:1686:(snd_config_load1) _toplevel_:24:26:Unexpected char
ALSA lib ../../src/conf.c:3406:(config_file_open) /usr/share/alsa/pulse-alsa.conf may be old or corrupted: consider to remove or fix it
These errors are result of LMDE ALSA config files syntax being outdated.
Check that /etc/asound.conf is:

Code: Select all

pcm.pulse {
    type pulse
}
ctl.pulse {
    type pulse
}
pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}
Then simply cp /etc/asound.conf /usr/share/alsa/pulse-alsa.conf