C# Class Sharpex2D.Audio.WaveOut.WaveOut

Datei anzeigen Open project: ThuCommix/Sharpex2D Class Usage Examples

Private Properties

Property Type Description
Callback void
CreateWaveOut System.IntPtr
RaisePlaybackChanged void
StartPlayback void

Public Methods

Method Description
Dispose ( ) : void

Disposes the object.

Dispose ( bool disposing ) : void

Disposes the object.

GetDevice ( int device ) : WaveOutCaps

Gets the caps of the device.

GetDeviceCount ( ) : int

Gets the available device amount.

GetDevices ( ) : Sharpex2D.Audio.WaveOut.WaveOutCaps[]

Gets all devices.

Initialize ( byte audioData, WaveFormat format ) : void

Initializes the playback.

Pause ( ) : void

Pause the wavestream.

Play ( ) : void

Plays the wavestream.

Resume ( ) : void

Resumes the wavestream.

SetVolume ( IntPtr waveOut, float left, float right ) : void

Sets the Volume.

Stop ( ) : void

Stops the wavestream.

WaveOut ( ) : System

Initializes a new WaveOut class.

Private Methods

Method Description
Callback ( IntPtr handle, WaveMessage msg, UIntPtr user, WaveHdr header, UIntPtr reserved ) : void

Callback func.

CreateWaveOut ( ) : IntPtr

Creates new WaveOut.

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() public method

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

GetDevice() public static method

Gets the caps of the device.
public static GetDevice ( int device ) : WaveOutCaps
device int The Device.
return WaveOutCaps

GetDeviceCount() public static method

Gets the available device amount.
public static GetDeviceCount ( ) : int
return int

GetDevices() public static method

Gets all devices.
public static GetDevices ( ) : Sharpex2D.Audio.WaveOut.WaveOutCaps[]
return Sharpex2D.Audio.WaveOut.WaveOutCaps[]

Initialize() public method

Initializes the playback.
public Initialize ( byte audioData, WaveFormat format ) : void
audioData byte The AudioData.
format WaveFormat The WaveFormat.
return void

Pause() public method

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

Play() public method

Plays the wavestream.
public Play ( ) : void
return void

Resume() public method

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

SetVolume() public static method

Sets the Volume.
public static SetVolume ( IntPtr waveOut, float left, float right ) : void
waveOut System.IntPtr The WaveOut.
left float The Left.
right float The Right.
return void

Stop() public method

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

WaveOut() public method

Initializes a new WaveOut class.
public WaveOut ( ) : System
return System