@siteed/expo-audio-studio
Version:
Comprehensive audio processing library for React Native and Expo with recording, analysis, visualization, and streaming capabilities across iOS, Android, and web
17 lines • 523 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.encodingToBitDepth = void 0;
const encodingToBitDepth = ({ encoding, }) => {
switch (encoding) {
case 'pcm_32bit':
return 32;
case 'pcm_16bit':
return 16;
case 'pcm_8bit':
return 8;
default:
throw new Error(`Unsupported encoding type: ${encoding}`);
}
};
exports.encodingToBitDepth = encodingToBitDepth;
//# sourceMappingURL=encodingToBitDepth.js.map