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.5.0 Last updated 2024-12-21 14:15:57