From aac78af83203f679af0b7521059623dd413e141d Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 29 Sep 2016 07:18:02 +0200 Subject: [PATCH] audio_driver.c - cleanup --- audio/audio_driver.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/audio/audio_driver.c b/audio/audio_driver.c index 3601e1dbdf..efb2e55a73 100644 --- a/audio/audio_driver.c +++ b/audio/audio_driver.c @@ -872,15 +872,13 @@ bool audio_driver_set_callback(const void *data) const struct retro_audio_callback *cb = (const struct retro_audio_callback*)data; #ifdef HAVE_NETPLAY global_t *global = global_get_ptr(); + if (global->netplay.enable) + return false; #endif if (recording_driver_get_data_ptr()) /* A/V sync is a must. */ return false; -#ifdef HAVE_NETPLAY - if (global->netplay.enable) - return false; -#endif if (cb) audio_callback = *cb;