Commit Graph

139 Commits

Author SHA1 Message Date
Lior Halphon 6d9ab972d0 Allow libretro to output audio for both Game Boys 2025-03-31 00:14:15 +03:00
Lior Halphon 04cd94de3f Delegate audio downsampling to the libretro frontend, except on the Wii U. Fixes #677. 2025-03-15 12:56:51 +02:00
Lior Halphon a3128d89c0 Support for a distinct CGB-E boot ROM, internal support for an distinct AGB-0 boot ROM 2024-06-09 22:49:49 +03:00
Lior Halphon a80a19b418 Fix warning 2024-04-05 14:54:05 +03:00
Lior Halphon 47ce95afb5 Fixed typo that caused the libretro core to crash during link mode. Fixes #534 2023-04-06 10:30:04 +03:00
Lior Halphon 9208f82d09 Add new models and revisions to libretro 2022-09-09 14:21:14 +03:00
Lior Halphon 2f00211321 Force the timing info to update on model switch. Fixes #493 2022-09-09 00:15:49 +03:00
Lior Halphon 52ab200544 Accurately emulate CGB first frame behavior. Fixes #432, fixes #482 2022-08-09 00:54:31 +03:00
Lior Halphon 3f7bcb9af2 Rename several color correction modes, add a new accurate mode 2022-07-30 13:32:40 +03:00
Lior Halphon aaf9a76b67 The vblank callback now reports the vblank type 2022-06-25 01:59:51 +03:00
radimerry 426d3d3a37
[Libretro] Sync core options 2022-06-10 04:12:15 +00:00
Lior Halphon 2a034d4ebe
Merge pull request #444 from realnc/fix-audio-perf
Libretro: Batch upload audio to frontend after video upload
2022-04-15 00:57:12 +03:00
Lior Halphon 019f262531 Fix RetroAchievements support (Closes #448) 2022-04-10 11:24:42 +03:00
Nikos Chantziaras 9e8f918b27
Libretro: Batch upload audio to frontend after video upload
Uploading audio at the end of retro_run() with
retro_audio_sample_batch_t instead of using retro_audio_sample_t to
submit samples as they are generated has peformance benefits when using
low audio latency settings. Frontends that implement audio sync and DRC
(like RetroArch) will block for a long time when submitting audio. This
can cause video frame presentation to be delayed too long. Low audio
latency settings make it worse, as DRC and audio sync is performed more
often, creating a bottleneck.

Simply accumulating all generated audio samples and uploading them at
the end with retro_audio_sample_batch_t improves things condiderably.
2022-04-02 08:51:39 +03:00
Lior Halphon a7f7530eed Preparation for future AGB-0 and B support 2022-01-30 18:11:35 +02:00
Lior Halphon f237b1e9b9 CGB-0 support 2021-11-04 00:35:44 +02:00
Lior Halphon c7e8d7fa13 Minor cleanup 2021-07-29 23:19:13 +03:00
Lior Halphon 6138833b28 Style fixes 2021-07-29 23:03:36 +03:00
Ryunam e1453f1961 [Libretro] Upgrade Core Options to v1.3 2021-06-26 23:40:22 +02:00
Lior Halphon 94add1d172 Add "Harsh Reality" color correction mode 2021-06-25 19:57:56 +03:00
Lior Halphon 3ed18a76da Added optional OSD (Cocoa) 2021-05-30 20:55:04 +03:00
Rob Loach 6a995bfe10
libretro: Sync updates from libretro 2021-02-28 09:45:18 -05:00
Lior Halphon 34b0404ffa Add RTC setting to libretro 2021-02-26 01:07:46 +02:00
Lior Halphon bdd27ce50d IR support in the libretro port 2020-11-21 15:36:21 +02:00
SimpleTease 696bebc673 libretro: joypad bitmasks 2020-10-10 17:14:53 +00:00
SimpleTease cd526d960e libretro: changing model requires manual game restart 2020-10-10 04:00:30 +00:00
Lior Halphon 4a51f5c956 Cherry-picking libretro memory map bugfix (Closes #227, #205). Fixing libretro build with modern macOS SDKs. 2020-06-09 20:09:50 +03:00
Lior Halphon 0200596391 Fix #256 2020-05-10 22:05:47 +03:00
Lior Halphon 620ee3cf51 Make the libretro frontend not crash on rumble-less frontends 2020-05-07 23:43:49 +03:00
Lior Halphon e5302a9b1e Set sane libretro defaults, add border settings (Closes #203), general libretro cleanup 2020-05-01 23:42:08 +03:00
Lior Halphon 5a56c3b882 Style fixes 2020-05-01 16:03:26 +03:00
Lior Halphon ea18ba9335 Add rumble settings to libretro 2020-05-01 15:50:22 +03:00
Lior Halphon 05cf3656b8 Fix libretro 2020-04-29 16:58:38 +03:00
Lior Halphon 5a14eb93c6 Merge branch 'master' into JoyKit
# Conflicts:
#	Cocoa/Document.m
#	Cocoa/GBView.h
#	Cocoa/GBView.m
#	Cocoa/joypad.m
#	Cocoa/main.m
#	Core/display.c
#	Core/gb.h
#	Core/save_state.c
2020-04-29 15:52:03 +03:00
Lior Halphon 0cf168f32b Fixing inconsistent style 2020-04-24 20:37:57 +03:00
Lior Halphon e94e7cc501 Add another color correction mode 2020-03-25 20:33:13 +02:00
Lior Halphon 0737655753 Merge branch 'master' into JoyKit 2020-01-03 23:42:25 +02:00
retro-wertz 436dc0b67a Fix GBC memory map and add IO port range for cheevos 2019-11-21 22:53:11 -05:00
Lior Halphon 0ece21bca7 Replace the SDL-derived controller support with my own JoyKit framework. Adds rumble support, LED support, better manual and automatic configurations, analog speed controls. 2019-10-19 19:26:04 +03:00
f21red 0a7a0ca5fe
libretro: sgb border option 2019-10-05 20:51:59 -05:00
f21red c50ea6a63f libretro: sgb color correction 2019-10-06 01:35:44 +00:00
Raphaël Zumer 1a263a3acc Fix GBC memory map and add IO port range for cheevos 2019-07-19 16:55:59 -04:00
Lior Halphon 597dc72e46 Fix audio issues with some RetroArch audio drivers. Fixes #189 2019-07-18 00:13:41 +03:00
Lior Halphon 50a6a3e35c Fix libretro SGB1 FPS, fix un/serialization memory corruptions in libretro 2019-06-19 23:49:43 +03:00
Lior Halphon e268efefef Redesign and reimplement the audio API, let the frontends handle more stuff. Probably affects #161 2019-06-15 23:22:27 +03:00
funbars 4a54985441
fix libretro log interface 2019-05-10 15:50:16 -05:00
Raphaël Zumer f8244c8119 Update libretro GBC memory map 2019-04-15 16:39:14 -04:00
Raphaël Zumer b3939e8fdc Add static GBC RAM banks to libretro memory map 2019-04-06 16:58:49 -04:00
trinemark d4e8a886c5
Fix libretro achievements
https://github.com/LIJI32/SameBoy/issues/48
https://github.com/LIJI32/SameBoy/issues/157
2019-04-05 22:35:52 -05:00
Lior Halphon 936afedb4b Merge commit '57b0fe7fed8e8218d7c890cd40dea4fa93f121a5' 2019-03-15 14:36:31 +02:00