C# Class NewTOAPIA.Media.WinMM.WaveOutputPort

Show file Open project: Wiladams/NewTOAPIA Class Usage Examples

Protected Properties

Property Type Description
fCallbackMethod WaveCallback

Public Methods

Method Description
BreakLoop ( ) : MMSYSERROR
Close ( ) : void
CreateDefaultPort ( ) : WaveOutputPort

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

CreateOutputPort ( int deviceID, int channels, int sampleRate, int bitsPerSample ) : WaveOutputPort

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

DeviceClosed ( IntPtr devHandle ) : void
DeviceOpened ( IntPtr devHandle ) : void
GetErrorText ( int mmrError, StringBuilder errorText, int textSize ) : MMSYSERROR
GetNumberOfWaveOutDevices ( ) : int
GetWaveOutCapabilities ( ) : WAVEOUTCAPS[]
Message ( uint msg, uint dw1, uint dw2 ) : MMSYSERROR
Open ( ) : void
OutputDone ( IntPtr wavhdr, IntPtr param2 ) : void
Pause ( ) : MMSYSERROR
PrepareHeader ( WAVEHDR pwh ) : void
Reset ( ) : void
Restart ( ) : MMSYSERROR
UnprepareHeader ( WAVEHDR pwh ) : void
WaveOutputPort ( int deviceID, WAVEFORMATEX wf ) : System
Write ( WAVEHDR pwh ) : void

Protected Methods

Method Description
DefaultAudioCallback ( IntPtr deviceHandle, int uMsg, IntPtr userData, IntPtr wavhdr, IntPtr reserved ) : void
EnsureOpen ( ) : void

Method Details

BreakLoop() public method

public BreakLoop ( ) : MMSYSERROR
return MMSYSERROR

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 ( ) : WaveOutputPort
return WaveOutputPort

CreateOutputPort() public static method

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

DefaultAudioCallback() protected method

protected DefaultAudioCallback ( IntPtr deviceHandle, int uMsg, IntPtr userData, IntPtr wavhdr, IntPtr reserved ) : void
deviceHandle System.IntPtr
uMsg int
userData System.IntPtr
wavhdr System.IntPtr
reserved System.IntPtr
return void

DeviceClosed() public method

public DeviceClosed ( IntPtr devHandle ) : void
devHandle System.IntPtr
return void

DeviceOpened() public method

public DeviceOpened ( IntPtr devHandle ) : void
devHandle System.IntPtr
return void

EnsureOpen() protected method

protected EnsureOpen ( ) : void
return void

GetErrorText() public static method

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

GetNumberOfWaveOutDevices() public static method

public static GetNumberOfWaveOutDevices ( ) : int
return int

GetWaveOutCapabilities() public static method

public static GetWaveOutCapabilities ( ) : WAVEOUTCAPS[]
return WAVEOUTCAPS[]

Message() public method

public Message ( uint msg, uint dw1, uint dw2 ) : MMSYSERROR
msg uint
dw1 uint
dw2 uint
return MMSYSERROR

Open() public method

public Open ( ) : void
return void

OutputDone() public method

public OutputDone ( IntPtr wavhdr, IntPtr param2 ) : void
wavhdr System.IntPtr
param2 System.IntPtr
return void

Pause() public method

public Pause ( ) : MMSYSERROR
return MMSYSERROR

PrepareHeader() public method

public PrepareHeader ( WAVEHDR pwh ) : void
pwh WAVEHDR
return void

Reset() public method

public Reset ( ) : void
return void

Restart() public method

public Restart ( ) : MMSYSERROR
return MMSYSERROR

UnprepareHeader() public method

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

WaveOutputPort() public method

public WaveOutputPort ( int deviceID, WAVEFORMATEX wf ) : System
deviceID int
wf TOAPI.Types.WAVEFORMATEX
return System

Write() public method

public Write ( WAVEHDR pwh ) : void
pwh WAVEHDR
return void

Property Details

fCallbackMethod protected property

protected WaveCallback fCallbackMethod
return WaveCallback