FLMusicLib: Play chiptune music and mp3 in godot.

An asset by FabianLC
The page banner background of a mountain and forest
FLMusicLib: Play chiptune music and mp3 in godot. hero image

Quick Information

0 ratings
FLMusicLib: Play chiptune music and mp3 in godot. icon image
FabianLC
FLMusicLib: Play chiptune music and mp3 in godot.

Platforms: Windows(64 and 32 bits), Linux(64 bits).Readme.md:GDNative library that plays mp3 and chiptune music files. The project uses GameMuseEmu, Minimp3 and libsoundioNotes-Currently a lot of things are hardcoded like the sample rate(44100) and the sound format (S16LE), I think these settings work on any hardware but I might be wrong.-mp3 files must have a constant bitrate.Methods-bool PlayMusic(String path,int trackNum,bool loop = true,int loopStart = -1,int loopEnd = -1,int startMsec = 0)-void StopMusic()-bool IsPlaying()-void SetVolumeMultiplier(float vol)-void StoreMusicState()-void RestoreMusicState()-int GetTrackPositionMsec()-void TogglePause()Signals-track_ended: emited when the music is not looping and a music track ends, timing might not be accurate(Or might not be emited at all but I haven't seen that yet) for chiptune music since the music length is unknown.Source: https://github.com/MightyPrinny/godot-FLMusicLibDemo: https://github.com/MightyPrinny/godot-FLMusicLib/tree/demo

Supported Engine Version
3.1
Version String
0.1.1
License Version
LGPLv2.1
Support Level
community
Modified Date
4 years ago
Git URL
Issue URL

Platforms: Windows(64 and 32 bits), Linux(64 bits).

Readme.md:

GDNative library that plays mp3 and chiptune music files. The project uses GameMuseEmu, Minimp3 and libsoundio

Notes

-Currently a lot of things are hardcoded like the sample rate(44100) and the sound format (S16LE), I think these settings work on any hardware but I might be wrong.

-mp3 files must have a constant bitrate.

Methods

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

-void StopMusic()

-bool IsPlaying()

-void SetVolumeMultiplier(float vol)

-void StoreMusicState()

-void RestoreMusicState()

-int GetTrackPositionMsec()

-void TogglePause()

Signals

-track_ended: emited when the music is not looping and a music track ends, timing might not be accurate(Or might not be emited at all but I haven't seen that yet) for chiptune music since the music length is unknown.


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

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
FLMusicLib: Play chiptune music and mp3 in godot. icon image
FabianLC
FLMusicLib: Play chiptune music and mp3 in godot.

Platforms: Windows(64 and 32 bits), Linux(64 bits).Readme.md:GDNative library that plays mp3 and chiptune music files. The project uses GameMuseEmu, Minimp3 and libsoundioNotes-Currently a lot of things are hardcoded like the sample rate(44100) and the sound format (S16LE), I think these settings work on any hardware but I might be wrong.-mp3 files must have a constant bitrate.Methods-bool PlayMusic(String path,int trackNum,bool loop = true,int loopStart = -1,int loopEnd = -1,int startMsec = 0)-void StopMusic()-bool IsPlaying()-void SetVolumeMultiplier(float vol)-void StoreMusicState()-void RestoreMusicState()-int GetTrackPositionMsec()-void TogglePause()Signals-track_ended: emited when the music is not looping and a music track ends, timing might not be accurate(Or might not be emited at all but I haven't seen that yet) for chiptune music since the music length is unknown.Source: https://github.com/MightyPrinny/godot-FLMusicLibDemo: https://github.com/MightyPrinny/godot-FLMusicLib/tree/demo

Supported Engine Version
3.1
Version String
0.1.1
License Version
LGPLv2.1
Support Level
community
Modified Date
4 years ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers