From 7b8ab475d542ff4a94109b0fb1b2575e37feeffa Mon Sep 17 00:00:00 2001 From: neonloop Date: Wed, 22 Sep 2021 15:37:20 +0000 Subject: Skips audio writing when buffer size is 0 This keeps from hanging when audio is sent before content is loaded (pcsx_rearmed). picoarch cannot know correct frame rate / sample rate before content is loaded (incorrect to call retro_get_system_av_info then) so best to just skip it --- core.c | 1 + 1 file changed, 1 insertion(+) (limited to 'core.c') diff --git a/core.c b/core.c index 6be799f..29544b6 100644 --- a/core.c +++ b/core.c @@ -623,6 +623,7 @@ int core_load_content(struct content *content) { sample_rate = av_info.timing.sample_rate; frame_rate = av_info.timing.fps; aspect_ratio = av_info.geometry.aspect_ratio; + plat_reinit(); #ifdef MMENU content_based_name(content, save_template_path, MAX_PATH, save_dir, NULL, ".st%i"); -- cgit v1.2.3