mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-01 09:12:35 +00:00
Move code to dynamic.c
This commit is contained in:
parent
52a41e77c4
commit
4599acf7aa
@ -32,10 +32,6 @@
|
|||||||
#include "audio_thread_wrapper.h"
|
#include "audio_thread_wrapper.h"
|
||||||
#include "../record/record_driver.h"
|
#include "../record/record_driver.h"
|
||||||
|
|
||||||
#ifdef HAVE_NETWORKING
|
|
||||||
#include "../network/netplay/netplay.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../command.h"
|
#include "../command.h"
|
||||||
#include "../driver.h"
|
#include "../driver.h"
|
||||||
#include "../configuration.h"
|
#include "../configuration.h"
|
||||||
@ -852,13 +848,6 @@ bool audio_driver_deinit(void)
|
|||||||
bool audio_driver_set_callback(const void *data)
|
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_NETWORKING
|
|
||||||
if (netplay_driver_ctl(RARCH_NETPLAY_CTL_IS_ENABLED, NULL))
|
|
||||||
return false;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (recording_driver_get_data_ptr()) /* A/V sync is a must. */
|
|
||||||
return false;
|
|
||||||
|
|
||||||
if (cb)
|
if (cb)
|
||||||
audio_callback = *cb;
|
audio_callback = *cb;
|
||||||
|
10
dynamic.c
10
dynamic.c
@ -36,6 +36,10 @@
|
|||||||
#include "cheevos.h"
|
#include "cheevos.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_NETWORKING
|
||||||
|
#include "network/netplay/netplay.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "dynamic.h"
|
#include "dynamic.h"
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
|
|
||||||
@ -1286,6 +1290,12 @@ bool rarch_environment_cb(unsigned cmd, void *data)
|
|||||||
#ifdef HAVE_THREADS
|
#ifdef HAVE_THREADS
|
||||||
{
|
{
|
||||||
RARCH_LOG("Environ SET_AUDIO_CALLBACK.\n");
|
RARCH_LOG("Environ SET_AUDIO_CALLBACK.\n");
|
||||||
|
#ifdef HAVE_NETWORKING
|
||||||
|
if (netplay_driver_ctl(RARCH_NETPLAY_CTL_IS_ENABLED, NULL))
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
|
if (recording_driver_get_data_ptr()) /* A/V sync is a must. */
|
||||||
|
return false;
|
||||||
audio_driver_set_callback(data);
|
audio_driver_set_callback(data);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user