Defined in carb/audio/AudioUtils.h

inline Voice *carb::audio::playLoopingSound(const IAudioPlayback *iface, Context *ctx, SoundData *snd, size_t loopCount = kEventPointLoopInfinite, bool spatial = false)

Play a sound sound that loops.


This plays a sound which loops through the full sound a given number of times (or an infinite number of times if desired).

  • iface[in] The IAudioPlayback interface to use.

  • ctx[in] The context to play the sound on.

  • snd[in] The sound to play.

  • loopCount[in] The number of times the sound will loop.

  • spatial[in] This chooses whether the sound is played as spatial or non-spatial.