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