Prevent modulo 0
Fix wrong memory allocation and sound selection
Merge pull request #78 from cinaera/pr_modulo

Fix several bugs for ingame sounds