apphouse
Version:
Component library for React that uses observable state management and theme-able components.
22 lines (21 loc) • 523 B
TypeScript
interface WavePCMConfigType {
sampleRate?: number;
bitDepth?: number;
}
interface WavePCMMessageType {
pcmArrays: Float32Array[];
config: WavePCMConfigType;
}
export default class WavePCM {
recordedBuffers: any;
sampleRate: any;
bitDepth: any;
bytesPerSample: any;
numberOfChannels: any;
wav: any;
constructor(config: WavePCMConfigType);
record: (buffers: any) => void;
requestData: () => void;
static postMessage: (message: WavePCMMessageType) => void;
}
export {};