diff options
author | neonloop | 2021-09-22 15:37:20 +0000 |
---|---|---|
committer | neonloop | 2021-09-22 15:37:20 +0000 |
commit | 7b8ab475d542ff4a94109b0fb1b2575e37feeffa (patch) | |
tree | 143bf238ce08127886886db4bef5de3a9b9f4ef5 /core.c | |
parent | 2b6772fca188aeb94f3eb9e2511f65c0fcbe4802 (diff) | |
download | picoarch-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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"); |