forked from lavender/watch-party
make the ping sound a lot more tolerable
parent
3d4ea0773d
commit
2197d2b757
|
@ -426,12 +426,12 @@ const beep = () => {
|
||||||
|
|
||||||
const gain = context.createGain();
|
const gain = context.createGain();
|
||||||
gain.connect(context.destination);
|
gain.connect(context.destination);
|
||||||
gain.gain.value = 0.1;
|
gain.gain.value = 0.15;
|
||||||
|
|
||||||
const oscillator = context.createOscillator();
|
const oscillator = context.createOscillator();
|
||||||
oscillator.connect(gain);
|
oscillator.connect(gain);
|
||||||
oscillator.frequency.value = 520;
|
oscillator.frequency.value = 400;
|
||||||
oscillator.type = "square";
|
oscillator.type = "sine";
|
||||||
|
|
||||||
oscillator.start(context.currentTime);
|
oscillator.start(context.currentTime);
|
||||||
oscillator.stop(context.currentTime + 0.22);
|
oscillator.stop(context.currentTime + 0.22);
|
||||||
|
|
Loading…
Reference in New Issue