audio_driver.c - cleanup
This commit is contained in:
parent
570d9c2164
commit
aac78af832
|
@ -872,15 +872,13 @@ bool audio_driver_set_callback(const void *data)
|
||||||
const struct retro_audio_callback *cb = (const struct retro_audio_callback*)data;
|
const struct retro_audio_callback *cb = (const struct retro_audio_callback*)data;
|
||||||
#ifdef HAVE_NETPLAY
|
#ifdef HAVE_NETPLAY
|
||||||
global_t *global = global_get_ptr();
|
global_t *global = global_get_ptr();
|
||||||
|
if (global->netplay.enable)
|
||||||
|
return false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (recording_driver_get_data_ptr()) /* A/V sync is a must. */
|
if (recording_driver_get_data_ptr()) /* A/V sync is a must. */
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
#ifdef HAVE_NETPLAY
|
|
||||||
if (global->netplay.enable)
|
|
||||||
return false;
|
|
||||||
#endif
|
|
||||||
if (cb)
|
if (cb)
|
||||||
audio_callback = *cb;
|
audio_callback = *cb;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue