C# Class BitOrchestra.Sound

An interface to a sound output for evaluators.
Inheritance: IDisposable
Afficher le fichier Open project: dzamkov/Bit-Orchestra Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void
Export ( string File, WaveStream Stream ) : bool

Tries exporting the given wavestream as a wave file.

Play ( WaveStream Stream ) : bool

Tries playing the sound from the given evaluator stream.

Sound ( ) : System
Stop ( ) : void

Stops playing this sound.

Private Methods

Méthode Description
_Create ( IWavePlayer &Player ) : bool

Tries creating a wave player of some sort.

_CreateAsio ( IWavePlayer &Player ) : bool

Tries creating an asio interface.

_CreateDirectSound ( IWavePlayer &Player ) : bool

Tries creating a directsound interface.

_CreateWasapi ( IWavePlayer &Player ) : bool

Tries creating a wasapi interface.

_CreateWaveout ( IWavePlayer &Player ) : bool

Tries creating a waveout interface.

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Export() public static méthode

Tries exporting the given wavestream as a wave file.
public static Export ( string File, WaveStream Stream ) : bool
File string
Stream NAudio.Wave.WaveStream
Résultat bool

Play() public méthode

Tries playing the sound from the given evaluator stream.
public Play ( WaveStream Stream ) : bool
Stream NAudio.Wave.WaveStream
Résultat bool

Sound() public méthode

public Sound ( ) : System
Résultat System

Stop() public méthode

Stops playing this sound.
public Stop ( ) : void
Résultat void