GUI: sample editor preview in selection

This commit is contained in:
tildearrow 2022-05-29 02:13:08 -05:00
parent 957e35af0b
commit 84d4ca63c2
5 changed files with 28 additions and 11 deletions

View file

@ -339,10 +339,13 @@ class DivEngine {
int sample;
int wave;
unsigned int pos;
int pBegin, pEnd;
SamplePreview():
sample(-1),
wave(-1),
pos(0) {}
pos(0),
pBegin(-1),
pEnd(-1) {}
} sPreview;
short vibTable[64];
@ -525,7 +528,7 @@ class DivEngine {
void syncReset();
// trigger sample preview
void previewSample(int sample, int note=-1);
void previewSample(int sample, int note=-1, int pStart=-1, int pEnd=-1);
void stopSamplePreview();
// trigger wave preview