Skip to content

Super simple semi port of MonoGame Sound classes / OpenAL implementation.

License

Notifications You must be signed in to change notification settings

Owlzy/Simple-MonoGame-OpenAL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Simple-MonoGame-OpenAL

Super simple semi port of MonoGame Sound classes / OpenAL implementation.

A quick and dirty version of sound effects cobbled together from MonoGame source. Was rushed out to fix a null pointer error in MonoGame that only effects certain Android devices, see - MonoGame/MonoGame#7011

Only supports Android using the OpenAL bundled with OpenTK.

Intended as a stop gap until the issue is fixed. Warning, only to be used in emergencies! Is not feature complete and is likely to be unstable, use at your own risk only if you are effected by the issue.

Usage

Uses a simple audio manager. The manager needs to be updated to remove stopped audio, so ensure it gets updated in your game update loop. Simply download, copy the folder to your project directory and make sure it is included, edit as required to fit your framework.

Audio.Update();

Has a basic loader class, works like Content.Load so the first time you load, it will load and parse the data, subsequent calls will return a new instance using cached data.

var sound = P3.AudioLib.Loader.Load(uri);

Playing sound effects is easy, just call:

P3.Audio.PlaySound(filename, loop = false);

About

Super simple semi port of MonoGame Sound classes / OpenAL implementation.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages