Don't let trim make sounds longer.
Fix infinite loop when sampling past end of file sound.