Skip to main content

Class MicroAudio

Provide high level audio functions

Assembly: MicroAudio.dll
View Source
Declaration
public class MicroAudio

Methods

SetVolume(float)

Set the playback volume

View Source
Declaration
public void SetVolume(float volume)
Parameters
TypeNameDescription
System.SinglevolumeThe volume from 0-1

PlaySystemSound(SystemSoundEffect, int)

Plays the specified system sound effect

View Source
Declaration
public Task PlaySystemSound(SystemSoundEffect effect, int numberOfLoops = 1)
Returns

System.Threading.Tasks.Task

Parameters
TypeNameDescription
Meadow.Foundation.Audio.SystemSoundEffecteffectThe sound effect to play
System.Int32numberOfLoopsThe number of times to play the sound effect

PlayGameSound(GameSoundEffect, int)

Plays the specified game sound effect

View Source
Declaration
public Task PlayGameSound(GameSoundEffect effect, int numberOfLoops = 1)
Returns

System.Threading.Tasks.Task

Parameters
TypeNameDescription
Meadow.Foundation.Audio.GameSoundEffecteffectThe sound effect to play
System.Int32numberOfLoopsThe number of times to play the sound effect

PlaySong(Song)

Play the specified song

View Source
Declaration
public Task PlaySong(Song song)
Returns

System.Threading.Tasks.Task

Parameters
TypeNameDescription
Meadow.Foundation.Audio.SongsongThe song object