Fix for issue #25

Fixes audio clipping problem.