dorkhub

godot-FLMusicLib

GDNative library that plays mp3, chiptune and tracker music files using Game Music Emu, Minimp3 and openmpt

MightyPrinny
C537 forksCC0-1.0updated 5 years ago
git clone https://github.com/MightyPrinny/godot-FLMusicLib.gitMightyPrinny/godot-FLMusicLib

GDNative library that plays mp3 and chiptune music files. 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.

-after exporting a windows game you have to copy some of the dlls to the game folder manually

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: emited 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.

more like this

musicboy

A high-quality audio playback cartridge for Nintendo® Game Boy® and Game Boy Color®.

C50

LedBoxV2

LedBox V2 / V2.1 is a fully contained, sound reactive, ESP32 based module for controlling 5-12V addressable LED strips…

code53

search

search projects, people, and tags