dist/wavefile.js
function floatToInt_(sample, args) {
  return parseInt(
    sample > 0 ? sample * args.newMax : sample * args.newMin, 10);
}
function floatToInt_(sample, args) {
  return parseInt(
    sample > 0 ? sample * args.newMax : sample * args.newMin, 10);
}
function floatToInt_ ( sample , args ) { return parseInt ( sample > 0 ? sample * args . newMax : sample * args . newMin , 10 ) ; }
Change the bit depth from float 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 float to int .