fixing minor bugs and adding description
This commit is contained in:
parent
843d9d52c3
commit
78adaaedef
2 changed files with 7 additions and 1 deletions
|
|
@ -249,7 +249,6 @@ export async function onTriggerSample(t, value, onended, bank, resolveUrl) {
|
|||
bufferSource.loop = true;
|
||||
bufferSource.loopStart = loopBegin * bufferSource.buffer.duration - offset;
|
||||
bufferSource.loopEnd = loopEnd * bufferSource.buffer.duration - offset;
|
||||
duration = loop * duration;
|
||||
}
|
||||
bufferSource.start(time, offset);
|
||||
const { node: envelope, stop: releaseEnvelope } = getEnvelope(attack, decay, sustain, release, 1, t);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue