Fix sounds not playing correctly.

Reported by reactor, patch by DrawingDrewfly.