Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Sealed class: RT.Util.SoundPlayerAsync

Summary

The way SoundPlayer was meant to be, but someone screwed it up. This is the official MS workaround.

Constructors

SoundPlayerAsync(Stream stream)
Creates a new player using the specified stream as the source of wave data to play.
Creates a new player.

Instance methods

void
  • Implements: IDisposable.Dispose()
Disposes of the class
void
LoadStream(Stream stream)
Loads the wave data to play from the specified stream. The stream can be closed immediately afterwards.
voidPlays the loaded file once, asynchronously.
voidPlays the loaded file forever in a loop, asynchronously. This class provides no methods for stopping this.

Instance properties

byte[]Gets or sets the bytes representing the wave data to be played.