pico.driver.audioworker
v0.1.0
Published
AudioDriver for AudioWorker
Downloads
5
Readme
pico.driver.audioworker
This is an experimental module. AudioWorker haven't been implemented in any browsers yet.
Installation
$ npm install pico.driver.audioworker
API
PicoAudioClientDriver
constructor()
Instance attributes
node: AudioWorkerNode
(required)context: AudioContext
(implicit readonly)sampleRate: number
(implicit readonly)bufferLength: number
(implicit readonly)
Instance methods
setup(opts: object): void
opts.context: AudioContext
(required)
start(): void
stop(): void
PicoAudioWorkerDriver
constructor()
Instance attributes
processor: Processor
(required)context: null
(implicit readonly)sampleRate: number
(implicit readonly)bufferLength: number
(implicit readonly)
Instance methods
setup(opts: object): void
start(): void
stop(): void
Server Interface
interface Processor {
driver: PicoDriver;
process(bufL: Float32Array, bufR: Float32Array) => void;
}
License
MIT