node-audio-mixer
Version:
PCM audio mixer with customizable parameters
12 lines (11 loc) • 383 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getMethodName = getMethodName;
const AssertFloat_1 = require("../../Asserts/AssertFloat");
function getMethodName(bitDepth, unsigned, float) {
if (float) {
(0, AssertFloat_1.assertFloat)(bitDepth);
return 'Float32';
}
return `${unsigned ? 'Uint' : 'Int'}${bitDepth}`;
}