Property | Type | Description | |
---|---|---|---|
CrossFadeStarting | EventHandler | ||
StateChanged | EventHandler |
Property | Type | Description | |
---|---|---|---|
DisposePlayer | void | ||
PlayAsync | void | ||
sourceVoice_BufferEnd | void |
Method | Description | |
---|---|---|
AudioPlayer ( SharpDX.XAudio2.XAudio2 xaudio2, Stream audioStream ) : System |
Initializes a new instance of the AudioPlayer class.
|
|
Close ( ) : void |
Close this audio player. This is similar to call Stop(), Dispose(), Wait(). |
|
Pause ( ) : void |
Pauses the sound.
|
|
Play ( ) : void |
Plays the sound.
|
|
Stop ( ) : void |
Stops the sound.
|
|
Wait ( ) : void |
Wait that the player is finished.
|
Method | Description | |
---|---|---|
RaiseCrossFadeStarting ( ) : void | ||
RaiseStateChanged ( StateEventArgs args ) : void |
Method | Description | |
---|---|---|
DisposePlayer ( ) : void | ||
PlayAsync ( ) : void |
Internal method to play the sound.
|
|
sourceVoice_BufferEnd ( |
public AudioPlayer ( SharpDX.XAudio2.XAudio2 xaudio2, Stream audioStream ) : System | ||
xaudio2 | SharpDX.XAudio2.XAudio2 | The xaudio2 engine. |
audioStream | Stream | The input audio stream. |
return | System |
protected RaiseStateChanged ( StateEventArgs args ) : void | ||
args | StateEventArgs | |
return | void |