Naev

Module lmusic

Small music handling library.

Based on Love2D and Naev API

Functions

play (filename, params) Plays a music with fade-in and fade-out.
stop (m) Stops a playing music (or all of them)
clear () Forcibly stops playing music and restarts Naev's game music.


Functions

play (filename, params)
Plays a music with fade-in and fade-out.

Parameters:

  • filename string or file Name or file object to open.
  • params tab Parameter table.

Returns:

    tab New music object.
stop (m)
Stops a playing music (or all of them)

Parameters:

  • m tab or nil Music to stop, or nil to stop all playing music.
clear ()
Forcibly stops playing music and restarts Naev's game music.
generated by LDoc 1.4.6 Last updated 2021-07-28 00:34:08