fix memory overrun from silent sample writing
Merge pull request #2361 from birarda/master

fix for random audio-mixer crashes