UNPKG

node-audio-mixer

Version:

PCM audio mixer with customizable parameters

12 lines (11 loc) 383 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.assertFloat = assertFloat; function assertFloat(bitDepth, unsigned) { if (bitDepth !== 32) { throw new TypeError('The "float" parameter can only be used for 32-bit'); } if (unsigned) { throw new TypeError('The "unsigned" parameter cannot be used with "float"'); } }