Table of Contents

Class AudioPlayer

Namespace
Axolotl2D.Audio
Assembly
Axolotl2D.dll

Represents the audio player for the game.

public class AudioPlayer : IDisposable
Inheritance
AudioPlayer
Implements
Inherited Members

Constructors

AudioPlayer()

Creates a new instance of the audio player.

public AudioPlayer()

Exceptions

Exception

Something went wrong initializing the audio player.

Methods

Dispose()

Disposes of the audio player.

public void Dispose()

LoadSong(Stream)

Loads a song from a stream.

public Song LoadSong(Stream songStream)

Parameters

songStream Stream

Stream to load song from. This MUST be a .WAV file!!

Returns

Song

The loaded song