code: function initWindow(name, buffer, size, normCoefs) {
    name = name.toLowerCase();
  
    switch (name) {
      case 'hann':
      case 'hanning':
        initHannWindow(buffer, size, normCoefs);
        break;
      case 'hamming':
        initHammingWindow(buffer, size, normCoefs);
        break;
      case 'blackman':
        initBlackmanWindow(buffer, size, normCoefs);
        break;
      case 'blackmanharris':
        initBlackmanHarrisWindow(buffer, size, normCoefs);
        break;
      case 'sine':
        initSineWindow(buffer, size, normCoefs);
        break;
      case 'rectangle':
        initRectangleWindow(buffer, size, normCoefs);
        break;
    }
  }
docs: Create a buffer with window signal.
  
  @memberof module:common.utils
  
  @param {String} name - Name of the window.
  @param {Float32Array} buffer - Buffer to be populated with the window signal.
  @param {Number} size - Size of the buffer.
  @param {Object} normCoefs - Object to be populated with the normailzation
  coefficients.