LuisR14
04-15-2010, 09:12 AM
(04-11-2010, 10:09 PM)MIKEYK255 Wrote: [ -> ]Awesome, u sir are a god, working music in zelda tp at lastbut there are still sounds that are missing (that i have noticed anyways)

(04-11-2010, 10:09 PM)MIKEYK255 Wrote: [ -> ]Awesome, u sir are a god, working music in zelda tp at lastbut there are still sounds that are missing (that i have noticed anyways)

(04-15-2010, 09:12 AM)LuisR14 Wrote: [ -> ](04-11-2010, 10:09 PM)MIKEYK255 Wrote: [ -> ]Awesome, u sir are a god, working music in zelda tp at lastbut there are still sounds that are missing (that i have noticed anyways)

(thanks to godisgovernment).void CUCode_Zelda::RenderVoice_PCM16(ZeldaVoicePB &PB, s16 *_Buffer, int _Size)
{
int _RealSize = SizeForResampling(PB, _Size, PB.RatioInt);
u32 rem_samples = _RealSize;
if (PB.KeyOff)
goto clear_buffer;
if (PB.NeedsReset)
{
UpdateSampleCounters10(PB);
for (int i = 0; i < 4; i++)
PB.ResamplerOldData[i] = 0; // Doesn't belong here, but dunno where to do it.
}
if (PB.ReachedEnd)
{
PB.ReachedEnd = 0;
reached_end:
if (!PB.RepeatMode) {
// One shot - play zeros the rest of the buffer.
clear_buffer:
for (u32 i = 0; i < rem_samples; i++)
*_Buffer++ = 0;
PB.KeyOff = 1;
return;
}
else
{
PB.RestartPos = PB.LoopStartPos;
UpdateSampleCounters10(PB);
}
}(05-03-2010, 12:19 PM)Xtreme2damax Wrote: [ -> ]Just wondering if you plan on attempting any further improvements of this patch?
Also, perhaps you could try to take a crack at the looping issue with Mario Galaxy.
). Unfortunately, I don't know how to produce such code as in DSP_UC_Zelda.txt.
(05-05-2010, 01:25 AM)neXus Wrote: [ -> ]Moreover, I have noticed a buffer underflow of the PB.RemLength variable. If this happens, everything works and the music does not stop (sometimes). If the condition (PB.IsBlank == 1) is true nothing can be done to restart the music (at least nothing I've tried so far). Even a soft reset of the game does not help.That sounds like a timing problem between the DSP and the CPU. The CPU has probably set a flag to note that the DSP has gone into a hung state and does not continue to send the music data. This is similar to the DSP "LLE on thread" problem. If what I am saying is correct, the fix will need to be a major change.
(05-06-2010, 11:25 AM)skid Wrote: [ -> ]That sounds like a timing problem between the DSP and the CPU.