Config.RCntFix = 1;
}
- var.value = NULL;
- var.key = "pcsx_rearmed_idiablofix";
-
- if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
- {
- if (strcmp(var.value, "disabled") == 0)
- spu_config.idiablofix = 0;
- else if (strcmp(var.value, "enabled") == 0)
- spu_config.idiablofix = 1;
- }
-
var.value = NULL;
var.key = "pcsx_rearmed_inuyasha_fix";
},
"simple",
},
- {
- "pcsx_rearmed_idiablofix",
- "Diablo Music Fix",
- NULL,
- {
- { "disabled", NULL },
- { "enabled", NULL },
- { NULL, NULL },
- },
- "disabled",
- },
{
"pcsx_rearmed_pe2_fix",
"Parasite Eve 2/Vandal Hearts 1/2 Fix",
},
NULL
},
- {
- "pcsx_rearmed_idiablofix",
- "Diablo Müzik Düzeltmesi",
- NULL,
- {
- { NULL, NULL },
- },
- NULL
- },
{
"pcsx_rearmed_pe2_fix",
"Parasite Eve 2/Vandal Hearts 1/2 Düzeltmleri",
pl_rearmed_cbs.gpu_peopsgl.iTexGarbageCollection = 1;
spu_config.iUseReverb = 1;
- spu_config.idiablofix = 0;
spu_config.iUseInterpolation = 1;
spu_config.iXAPitch = 0;
spu_config.iVolume = 768;
CE_INTVAL_P(gpu_peopsgl.iTexGarbageCollection),
CE_INTVAL_P(gpu_peopsgl.dwActFixes),
CE_INTVAL(spu_config.iUseReverb),
- CE_INTVAL(spu_config.idiablofix),
CE_INTVAL(spu_config.iXAPitch),
CE_INTVAL(spu_config.iUseInterpolation),
CE_INTVAL(spu_config.iTempo),
mee_range_h ("Volume boost", 0, volume_boost, -5, 30, h_spu_volboost),
mee_onoff ("Reverb", 0, spu_config.iUseReverb, 1),
mee_enum ("Interpolation", 0, spu_config.iUseInterpolation, men_spu_interp),
- mee_onoff ("Diablo Music fix", 0, spu_config.idiablofix, 1),
mee_onoff ("Adjust XA pitch", 0, spu_config.iXAPitch, 1),
mee_onoff_h ("Adjust tempo", 0, spu_config.iTempo, 1, h_spu_tempo),
mee_end,
unsigned int bNoise:1; // noise active flag\r
unsigned int bFMod:2; // freq mod (0=off, 1=sound channel, 2=freq channel)\r
unsigned int prevflags:3; // flags from previous block\r
-\r
+ unsigned int bIgnoreLoop:1; // Ignore loop\r
int iLeftVolume; // left volume\r
int iRightVolume; // right volume\r
ADSRInfoEx ADSRX;\r
unsigned short regArea[0x400];\r
} SPUInfo;\r
\r
+#define regAreaGet(ch,offset) \\r
+ spu.regArea[((ch<<4)|(offset))>>1]\r
+\r
///////////////////////////////////////////////////////////\r
// SPU.C globals\r
///////////////////////////////////////////////////////////\r
void do_samples(unsigned int cycles_to, int do_sync);\r
void schedule_next_irq(void);\r
\r
-#define regAreaGet(ch,offset) \\r
- spu.regArea[((ch<<4)|(offset))>>1]\r
-\r
#define do_samples_if_needed(c, sync) \\r
do { \\r
if (sync || (int)((c) - spu.cycles_played) >= 16 * 768) \\r
//------------------------------------------------//\r
case 14: // loop?\r
spu.s_chan[ch].pLoop=spu.spuMemC+((val&~1)<<3);\r
+ spu.s_chan[ch].bIgnoreLoop = 1;\r
goto upd_irq;\r
//------------------------------------------------//\r
}\r
{\r
if((val&1) && regAreaGet(ch,6)) // mmm... start has to be set before key on !?!\r
{\r
- spu.s_chan[ch].pCurr=spu.spuMemC+((regAreaGet(ch,6)&~1)<<3); // must be block aligned\r
- if (spu_config.idiablofix == 0) spu.s_chan[ch].pLoop=spu.spuMemC+((regAreaGet(ch,14)&~1)<<3);\r
+ spu.s_chan[ch].bIgnoreLoop = 0;\r
spu.dwNewChannel|=(1<<ch);\r
}\r
}\r
s_chan->iSBPos=27;
s_chan->spos=0;
+ s_chan->pCurr = spu.spuMemC+((regAreaGet(ch,6)&~1)<<3);
+
spu.dwNewChannel&=~(1<<ch); // clear new channel bit
spu.dwChannelOn|=1<<ch;
spu.dwChannelDead&=~(1<<ch);
decode_block_data(SB, start + 2, predict_nr, shift_factor);
flags = start[1];
- if (flags & 4)
+ if (flags & 4 && (!s_chan->bIgnoreLoop))
s_chan->pLoop = start; // loop adress
start += 16;
spu.s_chan[i].ADSRX.SustainIncrease = 1;
spu.s_chan[i].pLoop = spu.spuMemC;
spu.s_chan[i].pCurr = spu.spuMemC;
+ spu.s_chan[i].bIgnoreLoop = 0;
}
spu.bSpuInit=1; // flag: we are inited
int iUseReverb;
int iUseInterpolation;
int iTempo;
- int idiablofix;
int iUseThread;
int iUseFixedUpdates; // output fixed number of samples/frame