Page 1 of 1

openal alsa problem on startup

Posted: Wed Aug 15, 2012 12:48 am
by jimbo
Hi,

Getting the following errors on startup:

Code: Select all

Platform is Linux
Using Gl renderer
Desktop resolution: 1680x1050
Using resolution: 1200x1000
Available mods:
        cnc: C&C (release-20120630)
        ra: Red Alert (release-20120630)
AL lib: alsa_reset_playback: snd_pcm_hw_params(data->pcmHandle, hp) failed: Invalid argument
Followed by unhandled-exception related backtrace info.

Code: Select all

Unhandled Exception: System.InvalidOperationException: Can't create OpenAL context
  at OpenRA.OpenAlSoundEngine..ctor () [0x00000] in <filename unknown>:0 
  at OpenRA.Sound.CreateEngine (System.String engine) [0x00000] in <filename unknown>:0 
  at OpenRA.Sound.Create (System.String engine) [0x00000] in <filename unknown>:0 
  at OpenRA.Game.Initialize (OpenRA.Arguments args) [0x00000] in <filename unknown>:0 
  at OpenRA.Program.Run (System.String[] args) [0x00000] in <filename unknown>:0 
  at OpenRA.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Can't create OpenAL context
  at OpenRA.OpenAlSoundEngine..ctor () [0x00000] in <filename unknown>:0 
  at OpenRA.Sound.CreateEngine (System.String engine) [0x00000] in <filename unknown>:0 
  at OpenRA.Sound.Create (System.String engine) [0x00000] in <filename unknown>:0 
  at OpenRA.Game.Initialize (OpenRA.Arguments args) [0x00000] in <filename unknown>:0 
  at OpenRA.Program.Run (System.String[] args) [0x00000] in <filename unknown>:0 
  at OpenRA.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 
Using 64bit Arch Linux, installed OpenRA via pacman.

Posted: Wed Aug 15, 2012 6:43 am
by Matt
Try installing the OpenAL library. If you already have and this solves nothing start the game without sound as a workaround by writing this into $HOME/openra/settings.yaml

Code: Select all

Sound:
	Engine: Null

Posted: Wed Aug 15, 2012 9:20 am
by jimbo
I'm using the ALSA > JACK PCM plugin in .asoundrc, see: http://jackaudio.org/routing_alsa

If I disable that then OpenRA starts up as normal.

The errors I posted earlier are with the ALSA JACK plugin and JACK is running. I don't know if it's a problem with openal or with openra.



Thanks.

Posted: Wed Aug 22, 2012 3:35 pm
by ddd
Does sound work without jack through default device? If so you should probably post bug on http://bugs.open-ra.org.