LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-08-2014, 01:04 PM   #1
Stuferus
Member
 
Registered: Jun 2013
Location: Germany
Distribution: Slackware
Posts: 174

Rep: Reputation: Disabled
Question alsa with dmix + openal (minecraft)


hi,

i did setup my alsa with dmix from here:
http://alien.slackbook.org/dokuwiki/...slackware:alsa
i used version 1 and that works nice with systemsounds, teamspeak 3 client from slackbuilds and firefox with flash.

whats not working is minecraft aka openal.

im using slackware64 14.1.

i did google and search but didnt find anything on how to make openal work with dmix.

i dont want to use any other sound system than alsa if i not really have to.

at the moment im swiching between kde and xfce, not sure what i wanna finaly use but that point shouldnt matter to much for my sound problem.

thanks
Stefan
 
Old 01-08-2014, 01:48 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116
I had the same issue initially: no sound in minecraft.
What I did was inspect the file ~/.minecraft/bin/natives/libopenal.so to see it it accepted any kind of configuration file, and I found one:
Code:
strings ~/.minecraft/bin/natives/libopenal.so | grep -i alsoft.conf
/etc/openal/alsoft.conf
ALSOFT_CONF
        Please rename it to /etc/openal/alsoft.conf
So I searched the OpenAL source and ran into an example of this configuration file: http://repo.or.cz/w/openal-soft.git/...lsoftrc.sample
What I did was create the directory /etc/openal and copying this example file into /etc/openal/alsoft.conf . I uncommented one line as follows:
Code:
...
[alsa]

## device:
#  Sets the device name for the default playback device.
device = default
...
And I had sound in minecraft.
What follows is stranger: I decided to delete that file /etc/openal/alsoft.conf because I was trying to figure out how Jack, ALSA and OpenAL interact... and deleting the file made no difference! I still had sound in minecraft.
This has remained working after several reboots. Somewhere, another configuration file must have been updated but I have no idea where.

I intend to install this example file as /etc/openal/alsoft.conf.example when I update my OpenAL package.

Eric

Last edited by Alien Bob; 01-08-2014 at 01:49 PM.
 
1 members found this post helpful.
Old 01-08-2014, 02:13 PM   #3
Stuferus
Member
 
Registered: Jun 2013
Location: Germany
Distribution: Slackware
Posts: 174

Original Poster
Rep: Reputation: Disabled
thanks eric, ill give it a try. only sound in teamspeak isnt fun without sound in minecraft..

Last edited by Stuferus; 01-09-2014 at 10:46 AM.
 
Old 01-09-2014, 09:34 AM   #4
Stuferus
Member
 
Registered: Jun 2013
Location: Germany
Distribution: Slackware
Posts: 174

Original Poster
Rep: Reputation: Disabled
nope, did not work..

i still get this:
Quote:
2014-01-09 14:44:23 [Information] [STDOUT] Initializing LWJGL OpenAL
2014-01-09 14:44:23 [Information] [STDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
2014-01-09 14:44:24 [Schwerwiegend] [Minecraft-Client] Realms: Invalid session id
ALSA lib pcm_dmix.c:1022snd_pcm_dmix_open) unable to open slave
AL lib: (EE) alsa_open_playback: Could not open playback device 'default': Das Gerät oder die Ressource ist belegt
2014-01-09 14:44:25 [Information] [STDOUT] Error in class 'LibraryLWJGLOpenAL'
2014-01-09 14:44:25 [Information] [STDOUT] Unable to initialize OpenAL. Probable cause: OpenAL not supported.
2014-01-09 14:44:25 [Information] [STDOUT] ERROR MESSAGE:
2014-01-09 14:44:25 [Information] [STDOUT] Could not locate OpenAL library.
2014-01-09 14:44:25 [Information] [STDOUT] STACK TRACE:
2014-01-09 14:44:25 [Information] [STDOUT] org.lwjgl.openal.AL.create(AL.java:151)
2014-01-09 14:44:25 [Information] [STDOUT] org.lwjgl.openal.AL.create(AL.java:102)
2014-01-09 14:44:25 [Information] [STDOUT] org.lwjgl.openal.AL.create(AL.java:201)
2014-01-09 14:44:25 [Information] [STDOUT] paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164)
2014-01-09 14:44:25 [Information] [STDOUT] paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576)
2014-01-09 14:44:25 [Information] [STDOUT] paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572)
2014-01-09 14:44:25 [Information] [STDOUT] paulscode.sound.CommandThread.run(CommandThread.java:121)
2014-01-09 14:44:25 [Information] [STDOUT] ERROR MESSAGE:
2014-01-09 14:44:25 [Information] [STDOUT] Could not locate OpenAL library.
2014-01-09 14:44:25 [Information] [STDOUT]
2014-01-09 14:44:25 [Information] [STDOUT] Starting up SoundSystem...
2014-01-09 14:44:25 [Information] [STDOUT] Switching to No Sound
2014-01-09 14:44:25 [Information] [STDOUT] (Silent Mode)
2014-01-09 14:44:25 [Information] [STDOUT]
i had teamspeak running.

"Das Gerät oder die Ressource ist belegt" means something like "the device is busy"

i did put alsoft.conf in /etc/openal but didnt put ~/.alsoftrc

any idea?
edit: oh.. i should maybe say.. i dont have multilib installed..

edit1: ok, i learnd teamspeak isnt really for linux - at least if you dont have pulseaudio which takes care of the audio streams like windows does. mumble runs fine with dmix and stuffs.. oh well.. ill may have found a workaround (aoss) but im still not sure, still testing.

if someone has any additonal ideas about openal, alsa, the dmix stuff and teamspeak i would like to hear them.

ps.: i had the same trouble in the 90s with alsa and teamspeak2. not really nice memorys

Last edited by Stuferus; 01-10-2014 at 03:25 PM.
 
Old 01-14-2014, 11:25 AM   #5
Stuferus
Member
 
Registered: Jun 2013
Location: Germany
Distribution: Slackware
Posts: 174

Original Poster
Rep: Reputation: Disabled
ok, i solved my sound problem by using methode 2 you can find in the slackbook link from the first post, set chmod +x for alsa oss in rc.d and edited the teamspeak3 client start skript in /opt/Teamspeak3 so it starts with aoss.

now i have dmixed and dsnooped sound everywhere.

it really feels like alsa configuration didnt change since the 90's where i tryed it first.

thanks anyway to everyone and eric for the entry in the slackbook wiki, it really helped as the alsa websides as sorta cryptic to me

bye
 
  


Reply

Tags
alsa, minecraft, slackware64


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
got dmix working with OpenAL on UT2004 but sound stutters. help? r00tb33r Linux - Software 3 02-21-2007 08:56 PM
Permission to use alsa dmix Ian_Hawdon Linux - Software 10 12-21-2005 10:09 AM
OpenAL and dmix Belegdol Linux - Software 0 11-01-2005 05:40 AM
alsa dmix in ubuntu compujas Linux - General 2 08-17-2005 09:54 AM
ALSA dmix + Skype = no go zenith_zth Linux - Hardware 0 06-12-2005 05:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration