mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +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);
|