mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
AX: Implement loop counter
Required for Rogue Squadron.
This commit is contained in:
parent
f94cd57a70
commit
8f8e7681b2
@ -253,8 +253,9 @@ struct AXPB
|
||||
PBSampleRateConverter src;
|
||||
PBADPCMLoopInfo adpcm_loop_info;
|
||||
PBLowPassFilter lpf;
|
||||
u16 loop_counter;
|
||||
|
||||
u16 padding[25];
|
||||
u16 padding[24];
|
||||
};
|
||||
|
||||
struct PBBiquadFilter
|
||||
|
@ -234,6 +234,13 @@ u16 AcceleratorGetSample()
|
||||
acc_pb->adpcm.yn1 = acc_pb->adpcm_loop_info.yn1;
|
||||
acc_pb->adpcm.yn2 = acc_pb->adpcm_loop_info.yn2;
|
||||
}
|
||||
#ifdef AX_GC
|
||||
else
|
||||
{
|
||||
// If we're streaming, increment the loop counter.
|
||||
acc_pb->loop_counter++;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user