spu_config.iUseInterpolation = 0;
}
+ var.value = NULL;
+ var.key = "pcsx_rearmed_spu_thread";
+ if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
+ {
+ if (strcmp(var.value, "enabled") == 0)
+ spu_config.iUseThread = 1;
+ else
+ spu_config.iUseThread = 0;
+ }
+
#ifndef _WIN32
var.value = NULL;
var.key = "pcsx_rearmed_async_cd";
},
"enabled",
},
+#if !defined(THREAD_ENABLED) && !defined(_WIN32) && !defined(NO_OS)
+ {
+ "pcsx_rearmed_spu_thread",
+ "Threaded SPU",
+ NULL,
+ "Emulates the PSX SPU on another CPU thread. May cause audio glitches in some games.",
+ NULL,
+ "audio",
+ {
+ { "disabled", NULL },
+ { "enabled", NULL },
+ { NULL, NULL },
+ },
+ "disabled",
+ },
+#endif // THREAD_ENABLED
{
"pcsx_rearmed_show_input_settings",
"Show Input Settings",
spu_config.iXAPitch = 0;
spu_config.iVolume = 768;
spu_config.iTempo = 0;
- spu_config.iUseThread = 1; // no effect if only 1 core is detected
+ // may cause issues, no effect if only 1 core is detected
+ spu_config.iUseThread = 0;
#if defined(HAVE_PRE_ARMV7) && !defined(_3DS) /* XXX GPH hack */
spu_config.iUseReverb = 0;
spu_config.iUseInterpolation = 0;
* *
***************************************************************************/
-#if !defined(_WIN32) && !defined(NO_OS)
-#include <sys/time.h> // gettimeofday in xa.c
+#if !defined(THREAD_ENABLED) && !defined(_WIN32) && !defined(NO_OS)
#define THREAD_ENABLED 1
#endif
#include "stdafx.h"