DefinitelyTyped/types/audio-context/audio-context-tests.ts
Jeff Peterson 0f48f35cd2 Add types for audio-play and audio-context (#38119)
* Add types for audio-context and audio-play

* Test fixes

* More test fixes

* PR comments

* Remove excessive exporting
2019-09-06 16:25:07 -07:00

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);