mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
(Menu audio) Fix situation where a libretro core is running
in the background and menu audio is playing - we don't want audio_driver_menu_sample called then
This commit is contained in:
parent
b0ef193117
commit
91fcb49270
@ -423,7 +423,7 @@ void menu_display_set_font_framebuffer(const uint8_t *buffer)
|
||||
menu_display_font_framebuf = buffer;
|
||||
}
|
||||
|
||||
static bool menu_display_libretro_running(
|
||||
bool menu_display_libretro_running(
|
||||
bool rarch_is_inited,
|
||||
bool rarch_is_dummy_core)
|
||||
{
|
||||
|
@ -648,6 +648,8 @@ video_coord_array_t *menu_display_get_coords_array(void);
|
||||
const uint8_t *menu_display_get_font_framebuffer(void);
|
||||
void menu_display_set_font_framebuffer(const uint8_t *buffer);
|
||||
bool menu_display_libretro(bool is_idle, bool is_inited, bool is_dummy);
|
||||
bool menu_display_libretro_running(bool rarch_is_inited,
|
||||
bool rarch_is_dummy_core);
|
||||
|
||||
void menu_display_set_width(unsigned width);
|
||||
void menu_display_get_fb_size(unsigned *fb_width, unsigned *fb_height,
|
||||
|
@ -2629,11 +2629,16 @@ static enum runloop_state runloop_check_state(
|
||||
|
||||
if (focused || !runloop_idle)
|
||||
{
|
||||
bool libretro_running = menu_display_libretro_running(
|
||||
rarch_is_inited,
|
||||
(current_core_type == CORE_TYPE_DUMMY));
|
||||
|
||||
menu_driver_render(runloop_idle, rarch_is_inited,
|
||||
(current_core_type == CORE_TYPE_DUMMY)
|
||||
)
|
||||
;
|
||||
if (settings->bools.audio_enable_menu)
|
||||
if (settings->bools.audio_enable_menu &&
|
||||
!libretro_running)
|
||||
audio_driver_menu_sample();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user