meka icon indicating copy to clipboard operation
meka copied to clipboard

PushSamplesRequestBufs() sound fix

Open ARoxdale opened this issue 4 years ago • 0 comments

Fix the issue with PushSamplesRequestBufs() appearing at non-standard framerates / in Sonic 2.

The root of the issue was that the number of samples to be generated needed to depend on the current output framerate, not on the internal machine framerate. The current output framerate can either be measured directly by fskipper, or set at the requested output framerate/throttled_speed.

This fix allows Meka sound to perform stably at higher and lower non-standard framerates (Press F3/F4). Up to 400Hz is stable. However very low framerates, 10Hz, seem to perform better with actually measured FPS instead of requested FPS.

ARoxdale avatar May 17 '21 22:05 ARoxdale