firewall's picture

problem with Examples.exe

I downloaded opentk 0.9.1 version and tried the examples given.

On executing "mono Examples" every example works well except ... OpenAL :PLayback one.

On executing it fails with following error :


Testing WaveReader(Data/Audio/the_ring_that_fell.wav).ReadToEnd()
Stacktrace:

Segmentation fault

Please help !!!

I am using Ubuntu 8.04 and have installed libopenal0a and linopenal-dev.


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

Ubuntu ships with an ancient, buggy implementation of OpenAL. See here for details. (Note: this affects most distros, not only Ubuntu).

The real solution is to get distros to switch to OpenAL Soft, which has effectively replaced the old "Sample Implementation". Please, make a post to the aforementioned bug page - the more people that request this change, the more likely it is to make it to Ubuntu 8.10.

For an immediate solution, you should build OpenAL Soft manually: Install "build-essential", "alsa-dev" and "cmake" and follow the OpenAL Soft build instructions (pretty much type cmake and wait a few seconds).

Once that's ready, copy "libopenal.so.1.4.272" to the Examples.exe directory and point OpenTK to the new library: open OpenTK.dll.config and replace "libopenal.so.0" by "./libopenal.so.1.4.272" (this is the latest version of OpenAL Soft).

Edit: It seems openal-soft made it to Intrepid. Great!