code: function selectRenderingMode(event) {
    if (!audioReady)
      return;
  
    switch (document.getElementById('renderingMode').value) {
      case 'toa':
      {
        noneGain.gain.value = 0;
        pannerGain.gain.value = 0;
        foaGain.gain.value = 0;
        toaGain.gain.value = 1;
      }
      break;
      case 'foa':
      {
        noneGain.gain.value = 0;
        pannerGain.gain.value = 0;
        foaGain.gain.value = 1;
        toaGain.gain.value = 0;
      }
      break;
      case 'panner-node':
      {
        noneGain.gain.value = 0;
        pannerGain.gain.value = 1;
        foaGain.gain.value = 0;
        toaGain.gain.value = 0;
      }
      break;
      case 'none':
      default:
      {
        noneGain.gain.value = 1;
        pannerGain.gain.value = 0;
        foaGain.gain.value = 0;
        toaGain.gain.value = 0;
      }
      break;
    }
  }
docs: Select the desired rendering mode.
  @param {Object} event
  @private