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 &#40;&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Sound.CreateEngine &#40;System.String engine&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Sound.Create &#40;System.String engine&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Game.Initialize &#40;OpenRA.Arguments args&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Program.Run &#40;System.String&#91;&#93; args&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Program.Main &#40;System.String&#91;&#93; args&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
&#91;ERROR&#93; FATAL UNHANDLED EXCEPTION&#58; System.InvalidOperationException&#58; Can't create OpenAL context
  at OpenRA.OpenAlSoundEngine..ctor &#40;&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Sound.CreateEngine &#40;System.String engine&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Sound.Create &#40;System.String engine&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Game.Initialize &#40;OpenRA.Arguments args&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Program.Run &#40;System.String&#91;&#93; args&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Program.Main &#40;System.String&#91;&#93; args&#41; &#91;0x00000&#93; in <filename unknown>&#58;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&#58;
	Engine&#58; 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.