Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

SamplePlayer

An asset by TheCowOhBoy
The page banner background of a mountain and forest
SamplePlayer hero image

Quick Information

0 ratings
SamplePlayer icon image
TheCowOhBoy
SamplePlayer

Sample Player for the Godot Game Engine.

Supported Engine Version
3.5
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

SamplePlayer

Sample Player for the Godot Game Engine

Functions:

start_song(song: String)
    calls a song in the songs Dictionary and then plays it.
play_song()
    play the song stored in the title Dictionary.
stop_song()
    stop the song stored in the title Dictionary.
pause_song()
    pauses (which means, at position) the song stored in the title Dictionary.

P.S: As the 'func _on_pattern_finished()' allways needs a sample to be triggered and this sample is the first index on the pattern array, you should create a sample of total silence so you can store the timing in it and then write it instead of 0 (I'm using -1 as an example'). Probably not the right way to do it, but it's the way it works - a timer mess things up.

As for the song I'm using in this example, it's mine and I'm using it on my game (Ghosts Of Blue, it's on progress), but you can do whatever you want with this one.

Is it worth it?

original file of this song takes 2.0 MB

With samples I was able to reduce to 326.7 KB

That's like 17% of the original + you can do a lot more with it.

Sample Player for the Godot Game Engine.

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
SamplePlayer icon image
TheCowOhBoy
SamplePlayer

Sample Player for the Godot Game Engine.

Supported Engine Version
3.5
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
1 year 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