C# Class iSpyApplication.Sources.Audio.streams.DirectStream

Inheritance: IAudioSource, IDisposable
Show file Open project: ispysoftware/iSpy Class Usage Examples

Public Properties

Property Type Description
Interval int
PacketSize int

Public Methods

Method Description
DirectStream ( ) : System

Initializes a new instance of the LocalDeviceStream class.

DirectStream ( Stream stream ) : System

Initializes a new instance of the LocalDeviceStream class.

Dispose ( ) : void
Start ( ) : void

Start audio source.

Starts audio source and return execution to caller. audio source object creates background thread and notifies about new frames with the help of DataAvailable event.

Stop ( ) : void

Stop audio source.

Stops audio source.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
DirectStreamListener ( ) : void
Free ( ) : void

Free resource.

SampleChannelPreVolumeMeter ( object sender, NAudio.Wave.SampleProviders.StreamVolumeEventArgs e ) : void

Method Details

DirectStream() public method

Initializes a new instance of the LocalDeviceStream class.
public DirectStream ( ) : System
return System

DirectStream() public method

Initializes a new instance of the LocalDeviceStream class.
public DirectStream ( Stream stream ) : System
stream Stream source, which provides audio data.
return System

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Start() public method

Start audio source.
Starts audio source and return execution to caller. audio source object creates background thread and notifies about new frames with the help of DataAvailable event.
audio source is not specified.
public Start ( ) : void
return void

Stop() public method

Stop audio source.

Stops audio source.

public Stop ( ) : void
return void

Property Details

Interval public property

public int Interval
return int

PacketSize public property

public int PacketSize
return int