dist/wavefile.js
function decodeSample$1(muLawSample) {
  /** @type {number} */
  let sign;
  /** @type {number} */
  let exponent;
  /** @type {number} */
  let mantissa;
  /** @type {number} */
  let sample;
  muLawSample = ~muLawSample;
  sign = (muLawSample & 0x80);
  exponent = (muLawSample >> 4) & 0x07;
  mantissa = muLawSample & 0x0F;
  sample = decodeTable[exponent] + (mantissa << (exponent+3));
  if (sign != 0) sample = -sample;
  return sample;
}
function decodeSample$1(muLawSample) {
  /** @type {number} */
  let sign;
  /** @type {number} */
  let exponent;
  /** @type {number} */
  let mantissa;
  /** @type {number} */
  let sample;
  muLawSample = ~muLawSample;
  sign = (muLawSample & 0x80);
  exponent = (muLawSample >> 4) & 0x07;
  mantissa = muLawSample & 0x0F;
  sample = decodeTable[exponent] + (mantissa << (exponent+3));
  if (sign != 0) sample = -sample;
  return sample;
}
function decodeSample$1 ( muLawSample ) { /** @type {number} */ let sign ; /** @type {number} */ let exponent ; /** @type {number} */ let mantissa ; /** @type {number} */ let sample ; muLawSample = ~ muLawSample ; sign = ( muLawSample & 0x80 ) ; exponent = ( muLawSample >> 4 ) & 0x07 ; mantissa = muLawSample & 0x0F ; sample = decodeTable [ exponent ] + ( mantissa << ( exponent + 3 ) ) ; if ( sign != 0 ) sample = - sample ; return sample ; }
Decode a 8-bit mu-Law sample as 16-bit PCM.
@param {number} muLawSample The 8-bit mu-Law sample
@return {number}
Decode a 8 - bit mu - Law sample as 16 - bit PCM .