C# Class BitOrchestra.Sound

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

Public Methods

Method 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

Method 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 method

public Dispose ( ) : void
return void

Export() public static method

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

Play() public method

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

Sound() public method

public Sound ( ) : System
return System

Stop() public method

Stops playing this sound.
public Stop ( ) : void
return void