Page 1 of 1

"OpenAL incompatible WAV file" on linux

Posted: Mon Jun 17, 2013 12:11 pm
by Glorf
Hi, there is a problem when I run "Chaos Key" mod on linux. I got error message:

Code: Select all

[string "SoundSystem.lua"]:0: OpenAL incompatible WAV file
stack traceback:
	[C]: in function 'load'
	[string "SoundSystem.lua"]: in function 'defineSound'
	mod_assets/scripts/sounds.lua:58: in main chunk
	[string "Dungeon.lua"]: in function 'import'
	mod_assets/scripts/init.lua:39: in main chunk
	[string "Dungeon.lua"]: in function 'loadInitFile'
	[string "GameMode.lua"]: in function 'loadDungeon'
	[string "GameMode.lua"]: in function 'newGame'
	[string "GameMode.lua"]: in function 'completionFunc'
	[string "CinematicMode.lua"]: in function 'update'
	[string "Grimrock.lua"]: in function 'display'
	[string "Grimrock.lua"]: in main chunk
It's strange because mod is working good on windows. I run x86_64 arch linux and never encountered any problems so far.

I've found that this problem exist also in mac version: viewtopic.php?f=14&t=5107&hilit=chaos+key&start=70
and in other mods: http://forums.nexusmods.com/index.php?/ ... -diamonds/
so it's rather important to fix that. Or maybe I have just to change some settings?

Awaiting your response.
Glorf

Re: "OpenAL incompatible WAV file" on linux

Posted: Tue Jun 18, 2013 10:01 am
by petri
This error happens because the following wav files contained in the Chaos Key mod are 24-bit:
mod_assets/sounds/fx2.wav
mod_assets/sounds/fx3.wav

Wav files used by Grimrock mods should be 16-bit wavs.

Unfortunately the Windows version of Grimrock does not check the correctness of bits per sample of wav files, so the error has been undetected by the mod author. The audio engine used by Mac and Linux versions is more rigorous in error checking and thus the mod fails to load.