mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 21:58:37 +00:00
panic function update
This commit is contained in:
parent
886b16d6fd
commit
e7376c4fc8
@ -109,6 +109,9 @@ export const connectToDestination = (input, channels = [0, 1]) => {
|
||||
};
|
||||
|
||||
export const panic = () => {
|
||||
if (destinationGain == null) {
|
||||
return;
|
||||
}
|
||||
destinationGain.gain.linearRampToValueAtTime(0, getAudioContext().currentTime + 0.01);
|
||||
destinationGain = null;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user