mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add types for audio-context and audio-play * Test fixes * More test fixes * PR comments * Remove excessive exporting
12 lines
280 B
TypeScript
12 lines
280 B
TypeScript
import getContext = require("audio-context");
|
|
|
|
const context = getContext();
|
|
const myContext = getContext(22000);
|
|
const yourOptions: getContext.Options = {
|
|
sampleRate: 44000,
|
|
offline: true,
|
|
length: 3000,
|
|
channels: 2
|
|
};
|
|
const yourContext = getContext(yourOptions);
|