C# Class Sharpex2D.Audio.WaveOut.WaveOutAudioProvider

Inheritance: IAudioProvider
Show file Open project: ThuCommix/Sharpex2D

Public Methods

Method Description
CreateAudioSource ( string path ) : IAudioSource

Creates an AudioSource.

Dispose ( ) : void

Disposes the object.

Initialize ( IAudioSource audioSource ) : void

Initializes the audio provider with the given audio source.

Pause ( ) : void

Pause a sound.

Play ( PlaybackMode playbackMode ) : void

Plays the sound.

Resume ( ) : void

Resumes a sound.

Seek ( long position ) : void

Seeks a sound to a specified position.

Stop ( ) : void

Stops the sound.

WaveOutAudioProvider ( ) : System

Initializes a new WaveOutProvider class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Disposes the object.

Private Methods

Method Description
PlaybackChangedEvent ( object sender, EventArgs e ) : void

Triggered if the playback state changed.

Method Details

CreateAudioSource() public method

Creates an AudioSource.
public CreateAudioSource ( string path ) : IAudioSource
path string The Path.
return IAudioSource

Dispose() public method

Disposes the object.
public Dispose ( ) : void
return void

Dispose() protected method

Disposes the object.
protected Dispose ( bool disposing ) : void
disposing bool The disposing state.
return void

Initialize() public method

Initializes the audio provider with the given audio source.
public Initialize ( IAudioSource audioSource ) : void
audioSource IAudioSource The AudioSource.
return void

Pause() public method

Pause a sound.
public Pause ( ) : void
return void

Play() public method

Plays the sound.
public Play ( PlaybackMode playbackMode ) : void
playbackMode PlaybackMode The PlaybackMode.
return void

Resume() public method

Resumes a sound.
public Resume ( ) : void
return void

Seek() public method

Seeks a sound to a specified position.
public Seek ( long position ) : void
position long The Position.
return void

Stop() public method

Stops the sound.
public Stop ( ) : void
return void

WaveOutAudioProvider() public method

Initializes a new WaveOutProvider class.
public WaveOutAudioProvider ( ) : System
return System