snes9x/libretro
Nikos Chantziaras 1ea6ef5061
libretro: Fix audio when video rendering is disabled
In commit 6628042fe3, audio upload was
moved from retro_run() to S9xDeinitUpdate(). This breaks audio when
runahead is enabled in RetroArch.

With second-instance runahead, S9xDeinitUpdate() is not called when
video rendering is disabled and thus the core instance responsible for
audio is not uploading the audio. With single-instance runahead, audio
is uploaded twice because video rendering is always enabled and thus
S9xDeinitUpdate() gets called twice per frame.

Fix this by introducing a callback that gets called at the end of every
screen refresh, regardless of whether or not rendering is active for
this frame. We can then decide in the callback whether or not audio
should be uploaded.
2022-04-12 16:08:54 +03:00
..
jni libretro: jni: Switch stl to c++ in preparation for ndk r20 2019-10-11 22:00:26 -05:00
libretro-common/include Add core option sublabels 2019-10-11 22:00:26 -05:00
msvc Update MSVC 2010 Project files 2019-08-08 11:05:00 -05:00
control Update libretro port. 2018-05-25 17:03:10 -05:00
libretro_core_options_intl.h Add missing translated entry 2022-02-14 13:49:35 +01:00
libretro_core_options.h Add missing translated entry 2022-02-14 13:49:35 +01:00
libretro-win32.vcxproj libretro win32: Really fix build. 2019-10-18 16:50:57 -05:00
libretro-win32.vcxproj.filters Fix build failure on libretro. 2019-05-04 15:45:36 +09:00
libretro.cpp libretro: Fix audio when video rendering is disabled 2022-04-12 16:08:54 +03:00
libretro.def Update libretro port. 2018-05-25 17:03:10 -05:00
libretro.h (Core Options) Fix UTF-8 compilation issues, update 'libretro_core_options.h' to v1.3 format 2019-10-11 22:00:26 -05:00
link.T libretro: rename from libsnes and adapt new interface 2012-04-10 23:36:09 +02:00
Makefile (tvOS) support building using tvOS SDK 2019-10-11 22:00:26 -05:00
Makefile.common Add a compat.cpp file for compatibility symbols. 2020-09-07 10:57:17 -05:00
Tupfile Tupfile for super-repositories 2019-10-11 22:00:26 -05:00