Fix volume application

This commit is contained in:
nucular 2014-05-25 23:05:02 +02:00
parent f3e49ab0a8
commit d7c314dc18

View File

@ -376,8 +376,8 @@ function sfxr.Sound:generate(freq, bits)
end
-- Apply the volumes
ssample = ssample / self.superSamples * self.volume.master
ssample = ssample * 2 * self.volume.sound
ssample = (ssample / self.superSamples) * self.volume.master
ssample = (ssample * 2) * self.volume.sound
-- Hard limit
ssample = clamp(ssample, -1, 1)