aboutsummaryrefslogtreecommitdiff
path: root/core.c
diff options
context:
space:
mode:
authorneonloop2021-09-22 15:37:20 +0000
committerneonloop2021-09-22 15:37:20 +0000
commit7b8ab475d542ff4a94109b0fb1b2575e37feeffa (patch)
tree143bf238ce08127886886db4bef5de3a9b9f4ef5 /core.c
parent2b6772fca188aeb94f3eb9e2511f65c0fcbe4802 (diff)
downloadpicoarch-7b8ab475d542ff4a94109b0fb1b2575e37feeffa.tar.gz
picoarch-7b8ab475d542ff4a94109b0fb1b2575e37feeffa.tar.bz2
picoarch-7b8ab475d542ff4a94109b0fb1b2575e37feeffa.zip
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
Diffstat (limited to 'core.c')
-rw-r--r--core.c1
1 files changed, 1 insertions, 0 deletions
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");