refactor sampler:

- delegate getSampleBufferSource logic to getSampleInfo + getSampleBuffer
- move buffer logic up from onTriggerSample to those functions
This commit is contained in:
Felix Roos 2024-05-16 10:52:54 +02:00
parent e268802f3c
commit 73d49f152a
2 changed files with 65 additions and 51 deletions

View file

@ -362,6 +362,7 @@ export const superdough = async (value, t, hapDuration) => {
};
if (bank && s) {
s = `${bank}_${s}`;
value.s = s;
}
// get source AudioNode