Module horchata.music

Module to manage music and sounds

Info:

  • Copyright: 2020
  • License: MIT
  • Author: Juanjo Salvador

Functions

Music:load (base, file) Loads a list of tracks from file (default file, tracks.csv, see example bellow)
Music:play (track, volume) Plays the selected track
Music:stop (track) Stop the selected track


Functions

Music:load (base, file)
Loads a list of tracks from file (default file, tracks.csv, see example bellow)

Parameters:

  • base Base directory where audio files are stored, without ending slash
  • file CSV file with all tracks and descriptors, should be in the base directory, default tracklist.csv
Music:play (track, volume)
Plays the selected track

Parameters:

  • track A track listed on tracks.txt
  • volume Optional, sets the volume of the play (default 50%)
Music:stop (track)
Stop the selected track

Parameters:

  • track A track listed on tracks.txt
generated by LDoc 1.4.6 Last updated 2020-04-25 09:21:13