fix gain parameter, and always treat panned sounds as mono
fix gain parameter, and always treat panned sounds as mono. Also, tweak roundoff and increase maxsounds a bit