C# Class Gablarski.OpenAL.CaptureDevice

Inheritance: Device
Mostra file Open project: ermau/Gablarski Class Usage Examples

Public Methods

Method Description
Close ( ) : void
GetSamples ( ) : byte[]

Gets the available samples.

GetSamples ( int &numSamples ) : byte[]

Gets the available samples and provides the number of samples.

Open ( uint frequency, OpenALAudioFormat format ) : CaptureDevice

Opens the capture device with the specified frequency and format.

StartCapture ( ) : void

Starts capturing.

StopCapture ( ) : void

Stops capturing.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
CaptureDevice ( string deviceName ) : System
GetSamples ( int numSamples, bool block ) : byte[]
GetSamplesAvailable ( ) : int
alcCaptureCloseDevice ( IntPtr device ) : void
alcCaptureOpenDevice ( string deviceName, uint frequency, OpenALAudioFormat format, int bufferSize ) : IntPtr
alcCaptureSamples ( IntPtr device, IntPtr buffer, int numSamples ) : void
alcCaptureStart ( IntPtr device ) : void
alcCaptureStop ( IntPtr device ) : void

Method Details

Close() public method

public Close ( ) : void
return void

Dispose() protected method

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

GetSamples() public method

Gets the available samples.
public GetSamples ( ) : byte[]
return byte[]

GetSamples() public method

Gets the available samples and provides the number of samples.
public GetSamples ( int &numSamples ) : byte[]
numSamples int The number of samples returned.
return byte[]

Open() public method

Opens the capture device with the specified frequency and format.
public Open ( uint frequency, OpenALAudioFormat format ) : CaptureDevice
frequency uint The frequency to open the capture device with.
format OpenALAudioFormat The audio format to open the device with.
return CaptureDevice

StartCapture() public method

Starts capturing.
public StartCapture ( ) : void
return void

StopCapture() public method

Stops capturing.
public StopCapture ( ) : void
return void