C# Class NewTOAPIA.Media.WinMM.WaveInputPort

Inheritance: WinMMAudioDevice, IDisposable
显示文件 Open project: Wiladams/NewTOAPIA Class Usage Examples

Public Methods

Method Description
CanSupportFormat ( int deviceID, int channels, int sampleRate, int bitsPerSample ) : bool
Close ( ) : void
CreateDefaultPort ( double latency ) : WaveInputPort

Create a WaveOutPort that represents the default output device for the user's system.

CreateInputPort ( int deviceID, int channels, int sampleRate, int bitsPerSample, double latency ) : WaveInputPort

Help the user create an output device by specifying a few key parameters.

Dispose ( ) : void
GetErrorText ( int mmrError, StringBuilder errorText, int textSize ) : int
GetNumberOfWaveInDevices ( ) : int
Message ( uint msg, IntPtr dw1, IntPtr dw2 ) : int
Open ( ) : void
Reset ( ) : void
Start ( ) : void
Stop ( ) : void
UnprepareHeader ( WAVEHDR pwh ) : int
WaitForClosed ( ) : void
WaveInputPort ( int deviceID, WAVEFORMATEX wf, double latency ) : System
WaveInputPort ( int deviceID, int channels, int sampleRate, int bitsPerSample, double latency ) : System

Protected Methods

Method Description
EnsureOpen ( ) : void

Method Details

CanSupportFormat() public static method

public static CanSupportFormat ( int deviceID, int channels, int sampleRate, int bitsPerSample ) : bool
deviceID int
channels int
sampleRate int
bitsPerSample int
return bool

Close() public method

public Close ( ) : void
return void

CreateDefaultPort() public static method

Create a WaveOutPort that represents the default output device for the user's system.
public static CreateDefaultPort ( double latency ) : WaveInputPort
latency double
return WaveInputPort

CreateInputPort() public static method

Help the user create an output device by specifying a few key parameters.
public static CreateInputPort ( int deviceID, int channels, int sampleRate, int bitsPerSample, double latency ) : WaveInputPort
deviceID int
channels int
sampleRate int
bitsPerSample int
latency double
return WaveInputPort

Dispose() public method

public Dispose ( ) : void
return void

EnsureOpen() protected method

protected EnsureOpen ( ) : void
return void

GetErrorText() public static method

public static GetErrorText ( int mmrError, StringBuilder errorText, int textSize ) : int
mmrError int
errorText StringBuilder
textSize int
return int

GetNumberOfWaveInDevices() public static method

public static GetNumberOfWaveInDevices ( ) : int
return int

Message() public method

public Message ( uint msg, IntPtr dw1, IntPtr dw2 ) : int
msg uint
dw1 System.IntPtr
dw2 System.IntPtr
return int

Open() public method

public Open ( ) : void
return void

Reset() public method

public Reset ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

UnprepareHeader() public method

public UnprepareHeader ( WAVEHDR pwh ) : int
pwh WAVEHDR
return int

WaitForClosed() public method

public WaitForClosed ( ) : void
return void

WaveInputPort() public method

public WaveInputPort ( int deviceID, WAVEFORMATEX wf, double latency ) : System
deviceID int
wf TOAPI.Types.WAVEFORMATEX
latency double
return System

WaveInputPort() public method

public WaveInputPort ( int deviceID, int channels, int sampleRate, int bitsPerSample, double latency ) : System
deviceID int
channels int
sampleRate int
bitsPerSample int
latency double
return System