Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Surround Sound [solved]
Author Message
zak Offline
Junior Member

Posts: 44
Joined: Aug 2009
Reputation: 0
Post: #1
Surround Sound [solved]
Hi,
I noticed nothing coming out of my rear speakers and having only stereo sound. I hope 5.1 surround sound works on linux, too?

Quote:0. PulseAudio Software(OpenAL default)
1. ALSA Software on default
2. ALSA Software on SB Audigy 2 ZS [SB0350] [ADC Capture/Standard PCM Playback] (hw:0,0)
3. ALSA Software on SB Audigy 2 ZS [SB0350] [Multichannel Capture/PT Playback] (hw:0,2)
4. ALSA Software on SB Audigy 2 ZS [SB0350] [Multichannel Playback] (hw:0,3)
5. ALSA Software on SB Audigy 2 ZS [SB0350] [p16v] (hw:0,4)
6. OSS Software
7. PortAudio Software

I tried every option without success. 0 is not working for me because of missing PulseAudio software, do I have to use this? I think it should work with 1, too.

Anyway, not so important right now. I wish you good luck on releasing the game tomorrow!

Zak
09-07-2010 08:26 PM
Find all posts by this user Quote this message in a reply
Urkle Offline
FG - Associate

Posts: 1,104
Joined: Jul 2006
Reputation: 14
Post: #2
RE: Surround Sound
This sounds like an openal driver issue. Do other games output in the rear speakers? Try making sure you have the latest version of openal-soft's openal library intalled and rerun the checklibs script in the game install directory. The version included with the game is the latest as of a few weeks ago, but most often than not the checklibs script will find a system version of the lib to use.

Developing away on one of
Mac Pro Dual 2Ghz, 7GB RAM, Snow Leopard, nVidia 8800 512MB.
Linux, 3-core AMD, 4GB RAM, Fedora 16, nVidia 450 1GB
09-07-2010 08:35 PM
Visit this user's website Find all posts by this user Quote this message in a reply
zak Offline
Junior Member

Posts: 44
Joined: Aug 2009
Reputation: 0
Post: #3
RE: Surround Sound
Quote:$ ldd Amnesia.bin64 | grep open
libopenal.so.1 => /usr/lib/libopenal.so.1 (0x00007fcd902c2000)

$ file /usr/lib/libopenal.so.1
/usr/lib/libopenal.so.1: symbolic link to `libopenal.so.1.12.854'
It comes with debian (unstable) package libopenal1.

Unfortunately I don't know/have any other surround-sound games. But if I type
Quote:aplay -Dsurround51 Surround-SDL-testfiles/chan-id.wav
...I hear everything correctly from the right position. But in this case no OpenAL is used, correct?
Anything else I can try?

I called the checklibs script before of course.
09-07-2010 08:48 PM
Find all posts by this user Quote this message in a reply
Urkle Offline
FG - Associate

Posts: 1,104
Joined: Jul 2006
Reputation: 14
Post: #4
RE: Surround Sound
In the game directory, try

ln -sf all/libopenal.so.1 libs64

Then rerun the game. ( that will make amnesia use the included version of openal instead. You can check by doing ldd again )

If that still doesn't work I'd suggest checking the openalsoft mailing list.

Developing away on one of
Mac Pro Dual 2Ghz, 7GB RAM, Snow Leopard, nVidia 8800 512MB.
Linux, 3-core AMD, 4GB RAM, Fedora 16, nVidia 450 1GB
09-07-2010 08:55 PM
Visit this user's website Find all posts by this user Quote this message in a reply
zak Offline
Junior Member

Posts: 44
Joined: Aug 2009
Reputation: 0
Post: #5
RE: Surround Sound
Doesn't change anything :-(

I will look further into this and maybe check the openal mailing list as you mentioned and post the result here then.

Thanks for the quick answers.
09-07-2010 09:01 PM
Find all posts by this user Quote this message in a reply
nofsky Offline
Senior Member

Posts: 421
Joined: Sep 2008
Reputation: 1
Post: #6
RE: Surround Sound
I read on the steam forums that you have to edit the settings.cfg file to enable hardware sound for 5.1. That was on Windows but maybe this is the case here too?

Here's the thread
http://forums.steampowered.com/forums/sh...?t=1423706
09-07-2010 09:08 PM
Find all posts by this user Quote this message in a reply
zak Offline
Junior Member

Posts: 44
Joined: Aug 2009
Reputation: 0
Post: #7
RE: Surround Sound
Thanks nofsky but I already found out just now and it works :-)

For the record (at least Debian unstable):

In OpenAL configuration file /etc/openal/alsoft.conf or user-specific file ~/.alsoftrc
Quote:format = AL_FORMAT_51CHN32
(32-bit float 5.1 output)

For ALSA in section [alsa]:
Quote:device = surround51

And maybe further settings at will. There are a lot of options, e.g. for speaker positioning and so on.

Some more information maybe here: http://www.halfgaar.net/surround-sound-in-linux
09-07-2010 09:23 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)