FLMusicLib for Godot 3.1.1's icon

FLMusicLib for Godot 3.1.1 0.5.1 Misc 3.1 Community

Submitted by user FabianLC; CC0; 2019-12-02

GDNative library that plays mp3, .mod,.it,.s3m,.xm and chiptune music files.

Demo: https://github.com/MightyPrinny/godot-FLMusicLib/tree/demo

The project uses GameMuseEmu, Minimp3, libopenmpt and the new Audio features from Godot 3.1.1

This project is statically linked to GME 0.6.2 which is licensed under the LGPLv2.1. GME Source Code: https://bitbucket.org/mpyne/game-music-emu/src/0.6.2/

Check the licenses folder for more information on the libraries used in this project.

Notes

-mp3 files must have a constant bitrate.


Methods

-bool play_music(String path,int trackNum,bool loop = true,int loopStart = -1,int loopEnd = -1,int startMsec = 0)

-void stop_music()

-bool is_playing()

-void set_volume(float vol)

-void store_music_state()

-void restore_music_state()

-int get_track_position_msec()

-void toggle_pause()

Signals

-track_ended: emitted when the music is not looping and a music track ends, timing might not be accurate for chiptune music since the music length is unknown in most cases.


View files Download Submit an issue Recent Edits