Table of Contents

Namespace MLEM.Sound

Classes

SoundEffectInfo

A sound effect info is a wrapper around Microsoft.Xna.Framework.Audio.SoundEffect that additionally stores Volume, Pitch and Pan information. Additionally, a RandomPitchModifier can be applied, a Microsoft.Xna.Framework.Audio.SoundEffectInstance can be created using CreateInstance(bool), and more.

SoundEffectInstanceHandler

A simple class that handles automatically removing and disposing Microsoft.Xna.Framework.Audio.SoundEffectInstance objects once they are done playing to free up the audio source for new sounds. Additionally, a callback can be registered that is invoked when the Microsoft.Xna.Framework.Audio.SoundEffectInstance finishes playing. Note that an object of this class can be added to a Microsoft.Xna.Framework.Game using its Microsoft.Xna.Framework.GameComponentCollection.

SoundExtensions

A set of extensions for dealing with Microsoft.Xna.Framework.Audio.SoundEffect and Microsoft.Xna.Framework.Audio.SoundEffectInstance

Structs

SoundEffectInstanceHandler.Entry

An entry in a SoundEffectInstanceHandler. Each entry stores the Microsoft.Xna.Framework.Audio.SoundEffectInstance that is being played, as well as the additional data passed through Add(SoundEffectInstance, Action<SoundEffectInstance>, AudioEmitter).