pold500 / gens-rerecording

Automatically exported from code.google.com/p/gens-rerecording
0 stars 0 forks source link

Make output audio volume independent of emulation speed #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Currently, speeding up the emulation causes the sound from multiple frames
of emulation to accumulate and get output as unusually loud or garbled
samples. Also, slowing down the emulation causes the sound to output
intermittently (which means it becomes harder to hear clearly and also
quieter on average).

I would like for both of these cases to instead output sound that's
continuous in volume. I believe this can be achieved by (in both cases)
dividing the final sound sample values (Seg_L, Seg_R) by the square root of
the delta number of elapsed sound samples since the last sound output, and
also (for the slowdown case) mixing in the previous output values instead
of leaving a gap in the output buffer when there is no new audio data yet.

Original issue reported on code.google.com by nitsuja-@hotmail.com on 28 Jul 2008 at 8:20

GoogleCodeExporter commented 8 years ago
Fixed for the most part, although my suggested fix was kind of nonsense.

Original comment by nitsuja-@hotmail.com on 29 Jul 2008 at 7:29