HOWTO: Get SDL Audio in LMDE 64bit

Write tutorials here
More tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Do not start a support topic here please, Before you post please read this

HOWTO: Get SDL Audio in LMDE 64bit

Postby fixus971 on Tue May 22, 2012 6:24 pm

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
fixus971
Level 1
Level 1
 
Posts: 5
Joined: Sat Apr 03, 2010 9:01 pm

Linux Mint is funded by ads and donations.
 

Re: HOWTO: Get SDL Audio in LMDE 64bit

Postby crborga on Sun May 27, 2012 11:24 am

this also works for getting sound in wine
Image
crborga
Level 2
Level 2
 
Posts: 99
Joined: Wed Oct 27, 2010 10:09 am
Location: South Carolina, USA

Re: HOWTO: Get SDL Audio in LMDE 64bit

Postby dudedude1 on Sun Jul 15, 2012 12:48 pm

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
dudedude1
Level 1
Level 1
 
Posts: 1
Joined: Sun Jul 15, 2012 12:30 pm


Return to Tutorials

Who is online

Users browsing this forum: Majestic-12 [Bot] and 2 guests