Table of Contents

Class AudioPlayer

Namespace
Axolotl2D.Audio
Assembly
Axolotl2D.dll

Plays shared SoundAssets through an OpenAL device.

public sealed class AudioPlayer : IDisposable
Inheritance
AudioPlayer
Implements
Inherited Members

Constructors

AudioPlayer()

public AudioPlayer()

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Play(SoundAsset, bool, float)

public SoundPlayback Play(SoundAsset asset, bool loop = false, float volume = 1)

Parameters

asset SoundAsset
loop bool
volume float

Returns

SoundPlayback