AX: Implement loop counter

Required for Rogue Squadron.
This commit is contained in:
MerryMage 2017-04-06 13:43:46 +01:00
parent f94cd57a70
commit 8f8e7681b2
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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
{