void applySoundTransform(SoundTransform soundTransform)

Source

void applySoundTransform(SoundTransform soundTransform) {
  var volume = soundTransform.volume;
  _volumeNode.gain.value = pow(volume, 2);
}