Class AudioPlayer
Inheritance
System.Object
AudioPlayer
Namespace: InsaneScatterbrain.RetroKit
Syntax
public static class AudioPlayer
Methods
PlayMusic(String, Boolean)
Play a song.
Declaration
public static void PlayMusic(string songName, bool loop = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | songName | The song name. |
System.Boolean | loop | Should the song play on a loop? |
PlaySfx(String)
Play a sound effect.
Declaration
public static void PlaySfx(string sfxName)
Parameters
Type | Name | Description |
---|---|---|
System.String | sfxName | The sound effect's name |
StopAllMusic()
Stop all songs from playing.
Declaration
public static void StopAllMusic()
StopMusic(String)
Stop a song.
Declaration
public static void StopMusic(string songName)
Parameters
Type | Name | Description |
---|---|---|
System.String | songName | The song name. |