Avoid ifdef.
This commit is contained in:
parent
6d0c569f0a
commit
2b712f5f46
|
@ -202,8 +202,6 @@ static void set_alias_power(struct snr_result *res, unsigned freq, double power)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// This doesn't yet take account for slight phase distortions,
|
|
||||||
// so reported SNR is lower than reality.
|
|
||||||
static void calculate_snr(struct snr_result *res,
|
static void calculate_snr(struct snr_result *res,
|
||||||
unsigned in_rate, unsigned max_rate,
|
unsigned in_rate, unsigned max_rate,
|
||||||
const float *resamp, complex double *butterfly_buf, size_t samples)
|
const float *resamp, complex double *butterfly_buf, size_t samples)
|
||||||
|
|
|
@ -1165,13 +1165,19 @@ static void deinit_recording(void)
|
||||||
|
|
||||||
static void init_msg_queue(void)
|
static void init_msg_queue(void)
|
||||||
{
|
{
|
||||||
|
if (g_extern.msg_queue)
|
||||||
|
return;
|
||||||
|
|
||||||
rarch_assert(g_extern.msg_queue = msg_queue_new(8));
|
rarch_assert(g_extern.msg_queue = msg_queue_new(8));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void deinit_msg_queue(void)
|
static void deinit_msg_queue(void)
|
||||||
{
|
{
|
||||||
if (g_extern.msg_queue)
|
if (g_extern.msg_queue)
|
||||||
|
{
|
||||||
msg_queue_free(g_extern.msg_queue);
|
msg_queue_free(g_extern.msg_queue);
|
||||||
|
g_extern.msg_queue = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_XML
|
#ifdef HAVE_XML
|
||||||
|
@ -2328,10 +2334,7 @@ int rarch_main_init(int argc, char *argv[])
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
init_system_av_info();
|
init_system_av_info();
|
||||||
#ifndef RARCH_CONSOLE
|
|
||||||
//we have to init the message queue way in advance for console ports
|
|
||||||
init_msg_queue();
|
init_msg_queue();
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!g_extern.sram_load_disable)
|
if (!g_extern.sram_load_disable)
|
||||||
load_save_files();
|
load_save_files();
|
||||||
|
|
Loading…
Reference in New Issue