visualboyadvance-m/src/common
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
..
BSD.h support FreeBSD 2019-04-25 16:22:07 +00:00
ConfigManager.cpp Turbo/throttle config and DirectSound fixes. 2020-08-22 20:25:05 +00:00
ConfigManager.h Turbo config refactor followup. 2020-05-15 02:01:57 +00:00
Patch.cpp [WINDOWS] Add function to open unicode files. (#644) 2020-04-21 10:24:28 -03:00
Patch.h [WINDOWS] Add function to open unicode files. (#644) 2020-04-21 10:24:28 -03:00
Port.h Re-add Types.h, remove some more #ifdef 2018-06-08 20:14:45 +08:00
SoundDriver.h fix some compilation warnings 2019-04-03 17:32:25 +00:00
SoundSDL.cpp Joystick handling refactor. 2019-11-27 23:09:35 +00:00
SoundSDL.h fix some compilation warnings 2019-04-03 17:32:25 +00:00
Types.h Add missing file 2018-06-08 23:05:23 +08:00
array.h fix a memory leak due to wrong syntax 2017-08-03 16:29:37 -07:00
contains.h Joystick handling refactor. 2019-11-27 23:09:35 +00:00
cstdint.h Add header guard 2018-06-08 17:45:10 +08:00
dictionary.c updated standards to webkit standard 2016-07-08 19:59:29 -04:00
dictionary.h updated standards to webkit standard 2016-07-08 19:59:29 -04:00
ffmpeg.cpp Add `.wav` support for sound recording. 2020-01-22 13:50:27 -03:00
ffmpeg.h cmake: Visual Studio support improvements. 2019-12-10 11:13:58 +00:00
iniparser.c fix some compilation warnings 2019-04-03 17:32:25 +00:00
iniparser.h updated standards to webkit standard 2016-07-08 19:59:29 -04:00
memgzio.c Some fixes for MSVC. 2017-02-11 10:57:35 +08:00
memgzio.h Fixes memgzio with zlib > 1.2.3.8 2016-07-30 23:55:00 +02:00
range.hpp Joystick handling refactor. 2019-11-27 23:09:35 +00:00
ringbuffer.h Fix case where buffer is filled to capacity and becoming empty. There always needs to be an extra entry as a separator between the write and the read. 2017-02-22 03:39:57 +02:00
version.cpp fix Visual Studio build 2019-10-04 13:20:10 +00:00
version_cpp.h fix Visual Studio build 2019-10-04 13:20:10 +00:00