panic function update

This commit is contained in:
Jade Rowland 2023-11-23 14:17:17 -05:00
parent 886b16d6fd
commit e7376c4fc8

View File

@ -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;
};