Naev

Module lmusic

Small music handling library.

Based on Love2D and Naev API

Functions

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


Functions

clear ()
Forcibly stops playing music and restarts Naev's game music.
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.
generated by LDoc 1.5.0 Last updated 2025-05-18 01:00:15