Свойство | Тип | Описание | |
---|---|---|---|
CrossFadeStarting | EventHandler | ||
StateChanged | EventHandler |
Свойство | Тип | Описание | |
---|---|---|---|
DisposePlayer | void | ||
PlayAsync | void | ||
sourceVoice_BufferEnd | void |
Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
RaiseCrossFadeStarting ( ) : void | ||
RaiseStateChanged ( StateEventArgs args ) : void |
Метод | Описание | |
---|---|---|
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. |
Результат | System |
protected RaiseCrossFadeStarting ( ) : void | ||
Результат | void |
protected RaiseStateChanged ( StateEventArgs args ) : void | ||
args | StateEventArgs | |
Результат | void |