Add .gitignore to exclude all node packages and lock files

This commit is contained in:
Adolfo Reyna
2026-02-23 21:56:04 -05:00
parent faae96c9ed
commit dcc5c6c044
9747 changed files with 1555105 additions and 2 deletions
@@ -0,0 +1 @@
export declare const getDataTypeForAudioFormat: (format: AudioSampleFormat) => Uint8ArrayConstructor | Float32ArrayConstructor | Int16ArrayConstructor | Int32ArrayConstructor;
@@ -0,0 +1,26 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDataTypeForAudioFormat = void 0;
const getDataTypeForAudioFormat = (format) => {
switch (format) {
case 'f32':
return Float32Array;
case 'f32-planar':
return Float32Array;
case 's16':
return Int16Array;
case 's16-planar':
return Int16Array;
case 'u8':
return Uint8Array;
case 'u8-planar':
return Uint8Array;
case 's32':
return Int32Array;
case 's32-planar':
return Int32Array;
default:
throw new Error(`Unsupported audio format: ${format}`);
}
};
exports.getDataTypeForAudioFormat = getDataTypeForAudioFormat;
@@ -0,0 +1 @@
export declare const isPlanarFormat: (format: AudioSampleFormat) => boolean;
@@ -0,0 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isPlanarFormat = void 0;
const isPlanarFormat = (format) => {
return format.includes('-planar');
};
exports.isPlanarFormat = isPlanarFormat;