stransky / berusky2

Berusky 2 (Bugs Escape 3D) is a game that challenges your visual/spatial thinking and ability to find a way to resolve a logic task. Using five bugs, you'll go through an adventure full of various puzzles spread across nine episodes. Individual episodes differ in appearance and difficulty, which increases throughout the game.
http://anakreon.cz/en/Berusky2.htm
GNU General Public License v3.0
14 stars 3 forks source link

Abnormal program termination when a sound device is already in use #17

Closed apoleon closed 11 years ago

apoleon commented 11 years ago

This is Debian bug #722146. http://bugs.debian.org/722146

Berusky2 aborts with an assertion at start up when a sound device is already in use.

adas_Set_Last_Error(): Unable to open device. berusky2: adas/adas.c:170: adas_Set_Last_Error: Assertion `0' failed.

The music player daemon (MPD) had exclusive access to the device. Please consider to make Berusky2 failing more gracefully if the sound device is already used by another application.

stransky commented 11 years ago

Thanks for the report. You can define NDEBUG macro and all asserts will be disabled. But I'm going to remove all asserts from the sound module anyway.

stransky commented 11 years ago

Fixed by commit fa0babe86a777813daa536aa2020630bc44cbba2