C# Class Sharpex2D.Audio.OpenAL.OpenALAudioBuffer

Inheritance: IDisposable
Datei anzeigen Open project: ThuCommix/Sharpex2D Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Disposes the object.

Initialize ( byte audioData, WaveFormat format ) : void

Initializes the OpenALAudioBuffer class.

Initialize ( byte audioData, WaveFormat format, int latency ) : void

Initializes the OpenALAudioBuffer class.

OpenALAudioBuffer ( OpenALAudioFormat format, OpenALDevice device ) : System

Initializes a new OpenALAudioBuffer class.

Pause ( ) : void

Pause the playback.

Play ( ) : void

Starts the playback.

Resume ( ) : void

Resumes the playback.

Seek ( long position ) : void

Seeks the source to the given position.

Stop ( ) : void

Stops the playback.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Disposes the object.

Private Methods

Method Description
FillBuffer ( OpenALDataBuffer target ) : void

Fills the buffer.

RaisePlaybackChanged ( ) : void

Raises the PlaybackChanged event.

StartPlayback ( ) : void

Starts the playback.

Method Details

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 OpenALAudioBuffer class.
public Initialize ( byte audioData, WaveFormat format ) : void
audioData byte The Buffer.
format WaveFormat The WaveFormat.
return void

Initialize() public method

Initializes the OpenALAudioBuffer class.
public Initialize ( byte audioData, WaveFormat format, int latency ) : void
audioData byte The Buffer.
format WaveFormat The WaveFormat.
latency int The Latency.
return void

OpenALAudioBuffer() public method

Initializes a new OpenALAudioBuffer class.
public OpenALAudioBuffer ( OpenALAudioFormat format, OpenALDevice device ) : System
format OpenALAudioFormat
device OpenALDevice
return System

Pause() public method

Pause the playback.
public Pause ( ) : void
return void

Play() public method

Starts the playback.
public Play ( ) : void
return void

Resume() public method

Resumes the playback.
public Resume ( ) : void
return void

Seek() public method

Seeks the source to the given position.
public Seek ( long position ) : void
position long The Position in ms.
return void

Stop() public method

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