setWaveformSuperWave method

void setWaveformSuperWave(
  1. AudioSource sound,
  2. bool superwave
)

Set the given waveform sound's super wave flag.

Provide the sound for which to change the flag, and the new superwave value.

Throws SoLoudNotInitializedException if the engine is not initialized.

Implementation

void setWaveformSuperWave(AudioSource sound, bool superwave) {
  if (!isInitialized) {
    throw const SoLoudNotInitializedException();
  }
  _controller.soLoudFFI.setWaveformSuperWave(
    sound.soundHash,
    superwave ? 1 : 0,
  );
}