@echogarden/wave-codec
Version:
A fully-featured WAVE format encoder and decoder. Written in pure TypeScript.
15 lines (14 loc) • 1.16 kB
TypeScript
export declare function int8ToBytes(int8s: Int8Array): Uint8Array<ArrayBufferLike>;
export declare function bytesToInt8(bytes: Uint8Array): Int8Array<ArrayBufferLike>;
export declare function int16ToBytesLE(int16s: Int16Array): any;
export declare function bytesLEToInt16(bytes: Uint8Array): Int16Array<ArrayBufferLike>;
export declare function int24ToBytesLE(int24s: Int32Array): Uint8Array<ArrayBuffer>;
export declare function bytesLEToInt24(bytes: Uint8Array): Int32Array<ArrayBuffer>;
export declare function int32ToBytesLE(int32s: Int32Array): any;
export declare function bytesLEToInt32(bytes: Uint8Array): Int32Array<ArrayBufferLike>;
export declare function float32ToBytesLE(float32s: Float32Array): any;
export declare function bytesLEToFloat32(bytes: Uint8Array): Float32Array<ArrayBufferLike>;
export declare function float64ToBytesLE(float64s: Float64Array): any;
export declare function bytesLEToFloat64(bytes: Uint8Array): Float64Array<ArrayBufferLike>;
export declare function float64Tofloat32(float64s: Float64Array): Float32Array<ArrayBuffer>;
export declare function float32Tofloat64(float32s: Float32Array): Float64Array<ArrayBuffer>;