Fix sound cutoff for looped sounds and make sound offset threshold dependent on the size of the audio buffer
Merge pull request #108 from cinaera/pr_cutoff

Fix sound cutoff for looped sounds and make sound offset threshold depen...