VGM export: kind of implement sample loop

for PCE, NES and Genesis
kinda glitchy
This commit is contained in:
tildearrow 2022-01-25 03:12:53 -05:00
parent b6c536c907
commit 0c8ec07633
3 changed files with 59 additions and 10 deletions

View file

@ -188,7 +188,7 @@ class DivEngine {
void processRow(int i, bool afterDelay);
void nextOrder();
void nextRow();
void performVGMWrite(SafeWriter* w, DivSystem sys, DivRegWrite& write, int streamOff);
void performVGMWrite(SafeWriter* w, DivSystem sys, DivRegWrite& write, int streamOff, double* loopTimer, double* loopFreq, int* loopSample);
// returns true if end of song.
bool nextTick(bool noAccum=false);
bool perSystemEffect(int ch, unsigned char effect, unsigned char effectVal);