ES5506: Fix sample direction

This commit is contained in:
cam900 2025-06-02 16:38:15 +09:00
parent 7929cecb9d
commit ece9dd83c7
3 changed files with 47 additions and 23 deletions

View file

@ -67,7 +67,8 @@ class DivPlatformES5506: public DivDispatch, public es550x_intf {
int nextFreq, nextNote, currNote, wave;
int volMacroMax, panMacroMax;
bool useWave, isReverseLoop;
unsigned short cr;
unsigned short cr, crWriteVal, crDirVal;
bool crChanged, crDirValInit;
struct NoteChanged { // Note changed flags
union { // pack flag bits in single byte
@ -197,6 +198,9 @@ class DivPlatformES5506: public DivDispatch, public es550x_intf {
useWave(false),
isReverseLoop(false),
cr(0),
crWriteVal(0),
crChanged(false),
crDirValInit(true),
noteChanged(NoteChanged()),
volChanged(VolChanged()),
filterChanged(FilterChanged()),