diff options
author | notaz | 2011-02-08 01:32:53 +0200 |
---|---|---|
committer | notaz | 2011-02-10 02:07:54 +0200 |
commit | cdb31c9557f464b452ce6dc78b58b7e73cd423d8 (patch) | |
tree | 48164470135db7fcf3bd6071a1a11f1038ed3ee5 | |
parent | 8680e8229414b74335e2c1d05cc678cf8bab685b (diff) | |
download | pcsx_rearmed-cdb31c9557f464b452ce6dc78b58b7e73cd423d8.tar.gz pcsx_rearmed-cdb31c9557f464b452ce6dc78b58b7e73cd423d8.tar.bz2 pcsx_rearmed-cdb31c9557f464b452ce6dc78b58b7e73cd423d8.zip |
frontend: enable SPUIRQWait by default
-rw-r--r-- | frontend/menu.c | 13 | ||||
-rw-r--r-- | plugins/dfsound/spu.c | 2 |
2 files changed, 10 insertions, 5 deletions
diff --git a/frontend/menu.c b/frontend/menu.c index d5c7d91..7762905 100644 --- a/frontend/menu.c +++ b/frontend/menu.c @@ -159,7 +159,8 @@ static void menu_set_defconfig(void) iUseReverb = 2; iUseInterpolation = 1; - iXAPitch = iSPUIRQWait = 0; + iXAPitch = 0; + iSPUIRQWait = 1; iUseTimer = 2; menu_sync_config(); @@ -177,6 +178,10 @@ static void menu_set_defconfig(void) #define CE_INTVAL(val) \ { #val, sizeof(val), &val } +// 'versioned' var, used when defaults change +#define CE_INTVAL_V(val, ver) \ + { #val #ver, sizeof(val), &val } + static const struct { const char *name; size_t len; @@ -211,9 +216,9 @@ static const struct { CE_INTVAL(UseFrameSkip), CE_INTVAL(dwActFixes), CE_INTVAL(iUseReverb), - CE_INTVAL(iUseInterpolation), CE_INTVAL(iXAPitch), - CE_INTVAL(iSPUIRQWait), + CE_INTVAL_V(iUseInterpolation, 2), + CE_INTVAL_V(iSPUIRQWait, 2), CE_INTVAL(iUseTimer), }; @@ -1026,7 +1031,7 @@ static int menu_loop_plugin_gpu(int id, int keys) static const char *men_spu_reverb[] = { "Off", "Fake", "On", NULL }; static const char *men_spu_interp[] = { "None", "Simple", "Gaussian", "Cubic", NULL }; -static const char h_spu_irq_wait[] = "Wait for CPU; only useful for some games, may cause glitches"; +static const char h_spu_irq_wait[] = "Wait for CPU (recommended set to ON)"; static const char h_spu_thread[] = "Run sound emulation in main thread (recommended)"; static menu_entry e_menu_plugin_spu[] = diff --git a/plugins/dfsound/spu.c b/plugins/dfsound/spu.c index 084fccf..c455d3d 100644 --- a/plugins/dfsound/spu.c +++ b/plugins/dfsound/spu.c @@ -925,7 +925,7 @@ long CALLBACK SPUinit(void) pMixIrq = 0; memset((void *)s_chan, 0, (MAXCHAN + 1) * sizeof(SPUCHAN)); pSpuIrq = 0; - iSPUIRQWait = 0; + //iSPUIRQWait = 0; lastch = -1; //ReadConfigSPU(); // read user stuff |