Don't trim when set loop point

This commit is contained in:
cam900 2022-05-31 14:15:47 +09:00
parent 3b411cd14f
commit 3ab3774f92
1 changed files with 4 additions and 1 deletions

View File

@ -1240,8 +1240,11 @@ void FurnaceGUI::doAction(int what) {
e->lockEngine([this,sample]() {
SAMPLE_OP_BEGIN;
sample->trim(0,end);
if (sample->loopMode==DIV_SAMPLE_LOOPMODE_ONESHOT) {
sample->loopMode=DIV_SAMPLE_LOOPMODE_FORWARD;
}
sample->loopStart=start;
sample->loopEnd=end;
updateSampleTex=true;
e->renderSamples();