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 <mahyar.koshkouei@gmail.com>
This commit is contained in:
Mahyar Koshkouei 2018-05-05 16:02:19 +01:00 committed by Mahyar Koshkouei
parent c4f5919a91
commit 36faa474c7
No known key found for this signature in database
GPG Key ID: B790CA66809F18D6
1 changed files with 7 additions and 2 deletions

View File

@ -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.
*/