General Usage: Sound

Playing Sounds

Telescope does not only allow for graphics but also sound. To play a sound, simply call TS_PlaySound:

void TS_PlaySound(const char *path, int loops, int ticks)

play a sound

Parameters
  • path – path to the sound file

  • loops – [optional] number of loops, -1 for infinite

  • ticks – [optional] maximum time to play a sample, in milliseconds, -1 for infinite