mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 16:39:43 +00:00
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,
|
||||
unsigned in_rate, unsigned max_rate,
|
||||
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)
|
||||
{
|
||||
if (g_extern.msg_queue)
|
||||
return;
|
||||
|
||||
rarch_assert(g_extern.msg_queue = msg_queue_new(8));
|
||||
}
|
||||
|
||||
static void deinit_msg_queue(void)
|
||||
{
|
||||
if (g_extern.msg_queue)
|
||||
{
|
||||
msg_queue_free(g_extern.msg_queue);
|
||||
g_extern.msg_queue = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef HAVE_XML
|
||||
@ -2328,10 +2334,7 @@ int rarch_main_init(int argc, char *argv[])
|
||||
goto error;
|
||||
|
||||
init_system_av_info();
|
||||
#ifndef RARCH_CONSOLE
|
||||
//we have to init the message queue way in advance for console ports
|
||||
init_msg_queue();
|
||||
#endif
|
||||
|
||||
if (!g_extern.sram_load_disable)
|
||||
load_save_files();
|
||||
|
Loading…
Reference in New Issue
Block a user