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

Simple Audio Manager

An asset by symbol24
The page banner background of a mountain and forest
Simple Audio Manager thumbnail image
Simple Audio Manager thumbnail image
Simple Audio Manager thumbnail image
Simple Audio Manager hero image

Quick Information

0 ratings
Simple Audio Manager icon image
symbol24
Simple Audio Manager

A simple audio manager that allows for basic audio in both 2D and 3D.Create AudioFile Resources with your music and sounds. Use the Audio autoload to play the AudioFiles.The Simple Audio Manager will create the Music and SFX buses on runtime if they do not already exist.Currently the manager supports only 1 music file being played at a time, and will fade between the old and the new music (if music is playing). The AudioFile resource can have multiple audio streams (files) set, and will randomly pick one on play.Update 1.02: Added Audio Autoload to group "SimpleAudioManager" to allow code to validate if the autoload is present on runtime.Update 1.03:- Updated the play_audio to validate null pointers and push a proper error.- Updated autoload with new signal BusVolumeUpdate(id:String, value:float) to more easily use volume updatesUpdate 1.04:- - updated Audio Autoload to create audio data on first run. And to load that data afterwards.- updated audio data to have an array of audio files that can be searched by ID (string)- updated audio file to have an ID(string)- cleaned up overall file structure

Supported Engine Version
4.3
Version String
1.04
License Version
MIT
Support Level
community
Modified Date
6 months ago
Git URL
Issue URL

I developped Simple Audio Manager as a way to have access to a quick audio manager for game jams and then decided to release it as a plugin.

The plugin auto adds an Audio autoload.

All that is needed is to create AudioFile resources with your, well, audio files, and then use these AudioFile in your script with the Audio autoload.

Example: Audio.play_audio(my_audio_file)

The Simple Audio Manager will create the Music and SFX buses on runtime if they do not already exist.

Currently the manager supports only 1 music file being played at a time, and will fade between the old and the new music (if music is playing).

The AudioFile resource can have multiple audio streams (files) set, and will randomly pick one on play.

AudioFile properties: - volume_db: decibel volume. - min and max pitch: if values other than 1 are used, will return a value between the min and max. - is_music: if true, will play on the Music Bus. Music also plays when the tree is paused. If false, will play on SFX bus. - always_play: if true, SFX is also played when the tree is paused. Ignored if is_music is true. - is_unique: if true, will not play if another AudioStreamPlayer with the same AudioFile is currently playing.

Note: audio file type has been removed and moved to functions in the audio autoload.

For any comments, questions, or suggestions, do not hesitate to contact me @ [email protected].

Thanks!

A simple audio manager that allows for basic audio in both 2D and 3D.

Create AudioFile Resources with your music and sounds. Use the Audio autoload to play the AudioFiles.

The Simple Audio Manager will create the Music and SFX buses on runtime if they do not already exist.

Currently the manager supports only 1 music file being played at a time, and will fade between the old and the new music (if music is playing).

The AudioFile resource can have multiple audio streams (files) set, and will randomly pick one on play.

Update 1.02: Added Audio Autoload to group "SimpleAudioManager" to allow code to validate if the autoload is present on runtime.

Update 1.03:
- Updated the play_audio to validate null pointers and push a proper error.
- Updated autoload with new signal BusVolumeUpdate(id:String, value:float) to more easily use volume updates

Update 1.04:
- - updated Audio Autoload to create audio data on first run. And to load that data afterwards.
- updated audio data to have an array of audio files that can be searched by ID (string)
- updated audio file to have an ID(string)
- cleaned up overall file structure

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
Simple Audio Manager icon image
symbol24
Simple Audio Manager

A simple audio manager that allows for basic audio in both 2D and 3D.Create AudioFile Resources with your music and sounds. Use the Audio autoload to play the AudioFiles.The Simple Audio Manager will create the Music and SFX buses on runtime if they do not already exist.Currently the manager supports only 1 music file being played at a time, and will fade between the old and the new music (if music is playing). The AudioFile resource can have multiple audio streams (files) set, and will randomly pick one on play.Update 1.02: Added Audio Autoload to group "SimpleAudioManager" to allow code to validate if the autoload is present on runtime.Update 1.03:- Updated the play_audio to validate null pointers and push a proper error.- Updated autoload with new signal BusVolumeUpdate(id:String, value:float) to more easily use volume updatesUpdate 1.04:- - updated Audio Autoload to create audio data on first run. And to load that data afterwards.- updated audio data to have an array of audio files that can be searched by ID (string)- updated audio file to have an ID(string)- cleaned up overall file structure

Supported Engine Version
4.3
Version String
1.04
License Version
MIT
Support Level
community
Modified Date
6 months 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