visualboyadvance-m/src/gb
Rafael Kitover c169420fbc Turbo/throttle config and DirectSound fixes.
Make `speedup_frame_skip` and `speedup_throttle` independent settings,
with `speedup_frame_skip == 0` when `speedup_throttle` is not in effect,
and `speedup_throttle == 100` when `speedup_frame_skip` is in effect.

This fixes a previously introduced bug where `speedup == true &&
speedup_frame_skip = X` was never enabled.

This also allows `speedup_throttle == 0` for no throttle and no frame
skip during speedup.

Also set the upper bound on `throttle` and `speedup_throttle` to `450`
instead of `600`, as the DirectSound driver does not support values
higher than that.

In the DirectSound implementation of `setThrottle`, for `throttle == 0`
use a `throttle == 450` frequency multiplier, because a zero frequency
does nothing.

- Fix #719.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
2020-08-22 20:25:05 +00:00
..
GB.cpp Turbo/throttle config and DirectSound fixes. 2020-08-22 20:25:05 +00:00
gb.h libretro: Use GB RTC data when available 2019-08-10 18:24:32 +08:00
gbCheats.cpp [WINDOWS] Add function to open unicode files. (#644) 2020-04-21 10:24:28 -03:00
gbCheats.h Libretro: Add GB/GBC core 2018-07-17 01:55:19 +08:00
gbCodes.h GB: Remove references to gbReadOpcode 2018-07-26 00:24:06 +08:00
gbCodesCB.h GB: Remove references to gbReadOpcode 2018-07-26 00:24:06 +08:00
gbDis.cpp some more formating things etc 2016-07-09 09:53:13 -04:00
gbGfx.cpp GB: Prevent gbSpritesTicks from going out-of-bounds 2019-01-31 16:35:36 -08:00
gbGlobals.cpp Re-add Types.h, remove some more #ifdef 2018-06-08 20:14:45 +08:00
gbGlobals.h Re-add Types.h, remove some more #ifdef 2018-06-08 20:14:45 +08:00
gbMemory.cpp GB: Support 4MiB MBC30 ROM bank select. 2020-04-27 18:32:12 +00:00
gbMemory.h GB: fix 32/64 bit save/state incompatibility 2019-02-23 13:40:25 -08:00
gbPrinter.cpp Clean up various used variables 2016-12-30 11:16:00 -05:00
gbPrinter.h gb folder is done, next up gba, once this is all up I'm going to look at enhancing the cores 2016-07-09 11:41:31 -04:00
gbSGB.cpp Fix compilation warnings for MacOS build. 2019-04-04 18:01:05 -01:00
gbSGB.h Libretro: Add GB/GBC core 2018-07-17 01:55:19 +08:00
gbSound.cpp Cleanup 2019-08-06 08:58:04 +08:00
gbSound.h GB: Reduce input lag by 1 frame, video and audio timing updates... 2019-07-23 00:40:28 +08:00