make use of sample loop flag
issue #1109 this MAY BREAK THINGS if any problems, REVERT THIS ONE
This commit is contained in:
parent
f55dbc7376
commit
0c0efaea50
5 changed files with 14 additions and 9 deletions
|
|
@ -219,12 +219,17 @@ void FurnaceGUI::drawSampleEdit() {
|
|||
if (ImGui::Checkbox("Loop",&doLoop)) { MARK_MODIFIED
|
||||
if (doLoop) {
|
||||
sample->loop=true;
|
||||
sample->loopStart=0;
|
||||
sample->loopEnd=sample->samples;
|
||||
if (sample->loopStart<0) {
|
||||
sample->loopStart=0;
|
||||
}
|
||||
if (sample->loopEnd<0) {
|
||||
sample->loopEnd=sample->samples;
|
||||
}
|
||||
} else {
|
||||
sample->loop=false;
|
||||
/*
|
||||
sample->loopStart=-1;
|
||||
sample->loopEnd=sample->samples;
|
||||
sample->loopEnd=sample->samples;*/
|
||||
}
|
||||
updateSampleTex=true;
|
||||
if (e->getSampleFormatMask()&(1U<<DIV_SAMPLE_DEPTH_BRR)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue