(09-08-2010, 12:35 PM)GeeZ Wrote: I might have a solution for you (or at least a hint) :
I was able to switch from PulseAudio to Alsa by editing "~/.frictionalgames/Amnesia/MainDemo/main_settings.cfg" ;
on the last line you can change the number attributed to "Sound Device"
line 7 : "<Sound Device="0" Volume="1.000000" [...]"
It seams that :
- 5 is for pulseaudio
- 0 for default alsa
Now that I got my problem fixed, I was able to have a look in the Launcher's sound device selection menu, which is as of the following :
0 - default alsa
1 - alsa on ALC268 Analog (hw:0,0)
2 - alsa on Si3054 Modem (hw:0,6)
3 - OSS
4 - Portaudio
5 - PulseAudio
6 - Wave file writer
(NB: of course the numbers at the beginning of the lines are not indicated in the menu, I added them myself)
I guess that entry 1 and 2 are specific to my hardware (one for speakers and one for line out ???) and you might not have the same on your PC.
Changing the "Sound Device" parameter to the right number (3 on my PC) will do the trick. In my case (I had to get back to default Alsa), I put a "0" and it worked fine. However, if I try to force OSS on my computer, the game switches back to Alsa default, even if I select it using the GUI, so I can't tell you for sure if you'll make it work this way either.
Ah, thanks. I'll give it a try right now.
Edit: hmmm... on second thought... Amnesia has not yet written anything to ~/.frictionalgames except for the Amnesia/MainDemo/ subdirectories. So I have no main_settings.cfg file to edit there.
I'll try copying the .cfg from the installed game directory and editing that. Damn, it does not exist there
Any chance you can post the 'main_settings.cfg' contents so I can create my own in '~/.frictionalgames/Amnesia/MainDemo/'?
Edit: aha! I found a 'default_main_settings.cfg'... will try copying it and the other 'default' .cfg files into the home path and renaming them.
LOL. After all of that trouble it turns out that all I had to do was to run ./Amnesia.bin instead of ./Launcher.bin
It was just the launcher causing the issue. When launching the game directly, with nothing in the '~/.frictionalgames/' path at all, it started right up with audio and all.
Time to configure it and play
[SOLVED]
Bypassing the launcher and running ./Amnesia.bin directly worked perfectly. I configured my settings and played for a while. Pulseaudio was used by default and caused no issues whatsoever... sounded really good.