mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
10 lines
252 B
TypeScript
10 lines
252 B
TypeScript
import PseudoAudioParam = require('pseudo-audio-param');
|
|
const p = new PseudoAudioParam(1);
|
|
const v: number = p.getValueAtTime(0.1);
|
|
|
|
const ctx = new AudioContext();
|
|
const gain = new GainNode(ctx);
|
|
p.applyTo(gain.gain, false);
|
|
|
|
p.setValueAtTime(0, 1);
|