dist/wavefile.js
function intToInt_(sample, args) {
  if (sample > 0) {
    sample = parseInt((sample / args.oldMax) * args.newMax, 10);
  } else {
    sample = parseInt((sample / args.oldMin) * args.newMin, 10);
  }
  return sample;
}
function intToInt_(sample, args) {
  if (sample > 0) {
    sample = parseInt((sample / args.oldMax) * args.newMax, 10);
  } else {
    sample = parseInt((sample / args.oldMin) * args.newMin, 10);
  }
  return sample;
}
function intToInt_ ( sample , args ) { if ( sample > 0 ) { sample = parseInt ( ( sample / args . oldMax ) * args . newMax , 10 ) ; } else { sample = parseInt ( ( sample / args . oldMin ) * args . newMin , 10 ) ; } return sample ; }
Change the bit depth from int to int.
@param {number} sample The sample.
@param {!Object<string, number>} args Data about the original and target bit depths.
@return {number}
@private
Change the bit depth from int to int .