visualboyadvance-m/src/gba
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
..
BreakpointStructures.cpp fix some compilation warnings 2019-04-03 17:32:25 +00:00
BreakpointStructures.h Re-add Types.h, remove some more #ifdef 2018-06-08 20:14:45 +08:00
CheatSearch.cpp Kill common/Types.h, replace its old typedefs w/ standard types 2016-07-29 11:07:11 +02:00
CheatSearch.h finished the cheat files 2016-07-09 17:24:11 -04:00
Cheats.cpp [WINDOWS] Add function to open unicode files. (#644) 2020-04-21 10:24:28 -03:00
Cheats.h libretro: Cleanup some #ifdefs 2018-06-06 16:20:32 +08:00
EEprom.cpp GBA: Remove some magic numbers for main pointers and save types size 2019-01-30 04:10:35 -08:00
EEprom.h Libretro: Remove workaround for save file handling 2018-06-30 12:15:08 -07:00
Flash.cpp Cleanup 2019-08-06 08:58:04 +08:00
Flash.h Libretro: Remove workaround for save file handling 2018-06-30 12:15:08 -07:00
GBA-arm.cpp Fix clock cycle count for MUL, MLA instructions... (b91f39c787) 2020-08-11 21:17:25 +08:00
GBA-thumb.cpp Fix clock cycle count for MUL, MLA instructions... (b91f39c787) 2020-08-11 21:17:25 +08:00
GBA.cpp Turbo/throttle config and DirectSound fixes. 2020-08-22 20:25:05 +00:00
GBA.h Fix: a issue with loading e-Reader dot code (#608) 2020-02-15 14:02:53 -03:00
GBAGfx.cpp Gfx: Add #ifdef _MSC_VER, fix tiled rendering on windows 2018-06-08 21:21:57 +08:00
GBAGfx.h Move gfxDrawTextScreen() into GBAGfx.cpp 2018-06-08 20:56:39 +08:00
GBALink.cpp Allow binding specific server IP. (#633) 2020-03-16 13:37:01 -03:00
GBALink.h Allow binding specific server IP. (#633) 2020-03-16 13:37:01 -03:00
GBASockClient.cpp fix some compilation warnings 2019-04-03 17:32:25 +00:00
GBASockClient.h Re-add Types.h, remove some more #ifdef 2018-06-08 20:14:45 +08:00
GBAcpu.h regparm is an x86 only attribute, only define it there 2019-05-23 15:28:09 -05:00
GBAinline.h Buildfix 2020-08-11 21:22:07 +08:00
Globals.cpp Kill common/Types.h, replace its old typedefs w/ standard types 2016-07-29 11:07:11 +02:00
Globals.h Kill common/Types.h, replace its old typedefs w/ standard types 2016-07-29 11:07:11 +02:00
Mode0.cpp Kill common/Types.h, replace its old typedefs w/ standard types 2016-07-29 11:07:11 +02:00
Mode1.cpp Kill common/Types.h, replace its old typedefs w/ standard types 2016-07-29 11:07:11 +02:00
Mode2.cpp Kill common/Types.h, replace its old typedefs w/ standard types 2016-07-29 11:07:11 +02:00
Mode3.cpp Kill common/Types.h, replace its old typedefs w/ standard types 2016-07-29 11:07:11 +02:00
Mode4.cpp Kill common/Types.h, replace its old typedefs w/ standard types 2016-07-29 11:07:11 +02:00
Mode5.cpp Kill common/Types.h, replace its old typedefs w/ standard types 2016-07-29 11:07:11 +02:00
RTC.cpp RTC: Change this #ifdef to GBA_LOGGING 2018-06-16 15:17:12 +08:00
RTC.h Kill common/Types.h, replace its old typedefs w/ standard types 2016-07-29 11:07:11 +02:00
Sound.cpp Addressing audio plugin crash 2020-08-10 21:44:01 +00:00
Sound.h Sound.cpp: Update 2019-04-28 04:02:45 -07:00
Sram.cpp Update GBA save type detection and cleanup... 2019-01-29 08:28:17 -08:00
Sram.h Re-add Types.h, remove some more #ifdef 2018-06-08 20:14:45 +08:00
agbprint.cpp Make AGBPrint output to our Logging. 2020-03-18 00:12:27 +00:00
agbprint.h bios.cpp done, still a bit to go for the cores 2016-07-09 14:39:27 -04:00
armdis.cpp fix some ELF parsing vulnerabilities #255 2018-06-29 08:17:13 -07:00
armdis.h fix some ELF parsing vulnerabilities #255 2018-06-29 08:17:13 -07:00
bios.cpp GBA BIOS: ArcTan/ArcTan2 fixes for HLE bios 2020-08-12 22:44:43 +08:00
bios.h Kill common/Types.h, replace its old typedefs w/ standard types 2016-07-29 11:07:11 +02:00
debugger-expr-lex.c Integrated the VBA-SDL-H2 code into the GDB function. 2015-04-02 05:53:57 +00:00
debugger-expr-lex.cpp Fix compilation warnings for MacOS build. 2019-04-04 18:01:05 -01:00
debugger-expr-yacc.cpp fix some compilation warnings 2019-04-03 17:32:25 +00:00
debugger-expr-yacc.hpp Integrated the VBA-SDL-H2 code into the GDB function. 2015-04-02 05:53:57 +00:00
debugger-expr.l Integrated the VBA-SDL-H2 code into the GDB function. 2015-04-02 05:53:57 +00:00
debugger-expr.y Kill common/Types.h, replace its old typedefs w/ standard types 2016-07-29 11:07:11 +02:00
elf.cpp bugfix: crash when loading elf 2019-02-05 20:44:17 +08:00
elf.h I could go on, but really this is just more typedef removal 2016-07-09 21:38:43 -04:00
ereader.cpp Removing meaningless conditional 2020-04-30 02:17:23 +00:00
ereader.h fix some compilation warnings 2019-04-03 17:32:25 +00:00
gbafilter.cpp Kill common/Types.h, replace its old typedefs w/ standard types 2016-07-29 11:07:11 +02:00
gbafilter.h Expect more of these type of messages till all is done 2016-07-09 22:08:20 -04:00
remote.cpp Fix compilation warnings for MacOS build. 2019-04-04 18:01:05 -01:00
remote.h fix some compilation warnings 2019-04-03 17:32:25 +00:00