Add .gitignore to exclude all node packages and lock files
This commit is contained in:
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
export declare const getDataTypeForAudioFormat: (format: AudioSampleFormat) => Uint8ArrayConstructor | Float32ArrayConstructor | Int16ArrayConstructor | Int32ArrayConstructor;
|
||||
Generated
Vendored
+26
@@ -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;
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
export declare const isPlanarFormat: (format: AudioSampleFormat) => boolean;
|
||||
Generated
Vendored
+7
@@ -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;
|
||||
Reference in New Issue
Block a user