pico.driver.webaudio
v1.1.0
Published
AudioDriver for Web Audio API
Downloads
11
Readme
pico.driver.webaudio
Installation
$ npm install pico.driver.webaudio
API
PicoWebAudioDriver
constructor()
Instance attributes
processor: Processor
(required)context: AudioContext
(implicit readonly)sampleRate: number
(implicit readonly)bufferLength: number
(implicit readonly)
Instance methods
setup(opts: object): void
opts.context: AudioContext
(required)opts.bufferLength: number
(default: 1024)
start(): void
stop(): void
Server Interface
interface Processor {
driver: PicoDriver;
process(bufL: Float32Array, bufR: Float32Array) => void;
}
License
MIT