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:
parent
c4f5919a91
commit
36faa474c7
|
@ -297,7 +297,7 @@ static void context_reset(void)
|
||||||
|
|
||||||
mpv_opengl_cb_set_update_callback(mpv_gl, queue_new_frame, NULL);
|
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
|
/* Attempt to enable hardware acceleration. MPV will fallback to software
|
||||||
* decoding on failure.
|
* decoding on failure.
|
||||||
|
@ -400,6 +400,7 @@ void retro_reset(void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static void audio_callback(double fps)
|
static void audio_callback(double fps)
|
||||||
{
|
{
|
||||||
/* Obtain len samples to reduce lag. */
|
/* Obtain len samples to reduce lag. */
|
||||||
|
@ -419,6 +420,7 @@ static void audio_callback(double fps)
|
||||||
audio_batch_cb(frames, mpv_len);
|
audio_batch_cb(frames, mpv_len);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void retropad_update_input(void)
|
static void retropad_update_input(void)
|
||||||
{
|
{
|
||||||
|
@ -542,7 +544,7 @@ void retro_run(void)
|
||||||
retropad_update_input();
|
retropad_update_input();
|
||||||
|
|
||||||
/* TODO #2: Implement an audio callback feature in to libmpv */
|
/* TODO #2: Implement an audio callback feature in to libmpv */
|
||||||
audio_callback(container_fps);
|
//audio_callback(container_fps);
|
||||||
|
|
||||||
#if 1
|
#if 1
|
||||||
if(frame_queue > 0)
|
if(frame_queue > 0)
|
||||||
|
@ -593,6 +595,9 @@ bool retro_load_game(const struct retro_game_info *info)
|
||||||
{ 0 },
|
{ 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if(info->path == NULL)
|
||||||
|
return false;
|
||||||
|
|
||||||
/* Copy the file path to a global variable as we need it in context_reset()
|
/* Copy the file path to a global variable as we need it in context_reset()
|
||||||
* where mpv is initialised.
|
* where mpv is initialised.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue