C# Class Sharpex2D.Audio.WaveOut.WaveOut

Afficher le fichier Open project: ThuCommix/Sharpex2D Class Usage Examples

Private Properties

Свойство Type Description
Callback void
CreateWaveOut System.IntPtr
RaisePlaybackChanged void
StartPlayback void

Méthodes publiques

Méthode 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

Méthode 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 méthode

Disposes the object.
public Dispose ( ) : void
Résultat void

Dispose() public méthode

Disposes the object.
public Dispose ( bool disposing ) : void
disposing bool The disposing state.
Résultat void

GetDevice() public static méthode

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

GetDeviceCount() public static méthode

Gets the available device amount.
public static GetDeviceCount ( ) : int
Résultat int

GetDevices() public static méthode

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

Initialize() public méthode

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

Pause() public méthode

Pause the wavestream.
public Pause ( ) : void
Résultat void

Play() public méthode

Plays the wavestream.
public Play ( ) : void
Résultat void

Resume() public méthode

Resumes the wavestream.
public Resume ( ) : void
Résultat void

SetVolume() public static méthode

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.
Résultat void

Stop() public méthode

Stops the wavestream.
public Stop ( ) : void
Résultat void

WaveOut() public méthode

Initializes a new WaveOut class.
public WaveOut ( ) : System
Résultat System