carb::audio::playOneShotSound

Defined in carb/audio/AudioUtils.h

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

Play a sound with no special parameters.

Parameters
  • iface[in] The IAudioPlayback interface to use.

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

  • snd[in] The sound to play.

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