SPU: gcc does not like a goto, changing it to a block
This commit is contained in:
parent
e5f35a5f3e
commit
ffb5de877d
|
@ -521,8 +521,7 @@ static FORCEINLINE void Fetch16BitData(channel_struct *chan, s32 *data)
|
|||
static FORCEINLINE void FetchADPCMData(channel_struct * const chan, s32 * const data)
|
||||
{
|
||||
// No sense decoding, just return the last sample
|
||||
if (chan->lastsampcnt == sputrunc(chan->sampcnt))
|
||||
goto end;
|
||||
if (chan->lastsampcnt != sputrunc(chan->sampcnt)){
|
||||
|
||||
const u32 endExclusive = sputrunc(chan->sampcnt+1);
|
||||
for (u32 i = chan->lastsampcnt+1; i < endExclusive; i++)
|
||||
|
@ -538,8 +537,8 @@ static FORCEINLINE void FetchADPCMData(channel_struct * const chan, s32 * const
|
|||
}
|
||||
|
||||
chan->lastsampcnt = sputrunc(chan->sampcnt);
|
||||
}
|
||||
|
||||
end:
|
||||
#ifdef SPU_INTERPOLATE
|
||||
*data = Interpolate((s32)chan->pcm16b_last,(s32)chan->pcm16b,chan->sampcnt);
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue