Frictional Games Forum (read-only)
Surround Sound [solved] - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Technical Support (https://www.frictionalgames.com/forum/forum-57.html)
+--- Forum: Technical Support - Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-31.html)
+---- Forum: Linux - ATDD (https://www.frictionalgames.com/forum/forum-32.html)
+---- Thread: Surround Sound [solved] (/thread-3876.html)



Surround Sound [solved] - zak - 09-07-2010

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


RE: Surround Sound - Urkle - 09-07-2010

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.


RE: Surround Sound - zak - 09-07-2010

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.


RE: Surround Sound - Urkle - 09-07-2010

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.


RE: Surround Sound - zak - 09-07-2010

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.


RE: Surround Sound - nofsky - 09-07-2010

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/showthread.php?t=1423706


RE: Surround Sound - zak - 09-07-2010

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