From 36faa474c7e7e6a024bfc4413a7816c619085fa2 Mon Sep 17 00:00:00 2001 From: Mahyar Koshkouei Date: Sat, 5 May 2018 16:02:19 +0100 Subject: [PATCH] Remove audio-cb support audio-cb support will be merged to mpv-libretro when a suitable implementation is merged into libmpv. Signed-off-by: Mahyar Koshkouei --- mpv-libretro.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mpv-libretro.c b/mpv-libretro.c index b5fbf96..dbc9c40 100644 --- a/mpv-libretro.c +++ b/mpv-libretro.c @@ -297,7 +297,7 @@ static void context_reset(void) mpv_opengl_cb_set_update_callback(mpv_gl, queue_new_frame, NULL); - mpv_set_option_string(mpv, "ao", "audio-cb"); + //mpv_set_option_string(mpv, "ao", "audio-cb"); /* Attempt to enable hardware acceleration. MPV will fallback to software * decoding on failure. @@ -400,6 +400,7 @@ void retro_reset(void) return; } +#if 0 static void audio_callback(double fps) { /* Obtain len samples to reduce lag. */ @@ -419,6 +420,7 @@ static void audio_callback(double fps) audio_batch_cb(frames, mpv_len); } } +#endif static void retropad_update_input(void) { @@ -542,7 +544,7 @@ void retro_run(void) retropad_update_input(); /* TODO #2: Implement an audio callback feature in to libmpv */ - audio_callback(container_fps); + //audio_callback(container_fps); #if 1 if(frame_queue > 0) @@ -593,6 +595,9 @@ bool retro_load_game(const struct retro_game_info *info) { 0 }, }; + if(info->path == NULL) + return false; + /* Copy the file path to a global variable as we need it in context_reset() * where mpv is initialised. */