setLooping method

void setLooping(
  1. SoundHandle handle,
  2. bool enable
)

Set the looping flag of a currently playing sound, provided via its handle.

Throws SoLoudNotInitializedException if the engine is not initialized.

Implementation

void setLooping(SoundHandle handle, bool enable) {
  if (!isInitialized) {
    throw const SoLoudNotInitializedException();
  }
  _controller.soLoudFFI.setLooping(handle, enable);
}