C# Class NewTOAPIA.Media.WinMM.WaveOutputPort

Afficher le fichier Open project: Wiladams/NewTOAPIA Class Usage Examples

Protected Properties

Свойство Type Description
fCallbackMethod WaveCallback

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
DefaultAudioCallback ( IntPtr deviceHandle, int uMsg, IntPtr userData, IntPtr wavhdr, IntPtr reserved ) : void
EnsureOpen ( ) : void

Method Details

BreakLoop() public méthode

public BreakLoop ( ) : MMSYSERROR
Résultat MMSYSERROR

Close() public méthode

public Close ( ) : void
Résultat void

CreateDefaultPort() public static méthode

Create a WaveOutPort that represents the default output device for the user's system.
public static CreateDefaultPort ( ) : WaveOutputPort
Résultat WaveOutputPort

CreateOutputPort() public static méthode

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
Résultat WaveOutputPort

DefaultAudioCallback() protected méthode

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
Résultat void

DeviceClosed() public méthode

public DeviceClosed ( IntPtr devHandle ) : void
devHandle System.IntPtr
Résultat void

DeviceOpened() public méthode

public DeviceOpened ( IntPtr devHandle ) : void
devHandle System.IntPtr
Résultat void

EnsureOpen() protected méthode

protected EnsureOpen ( ) : void
Résultat void

GetErrorText() public static méthode

public static GetErrorText ( int mmrError, StringBuilder errorText, int textSize ) : MMSYSERROR
mmrError int
errorText StringBuilder
textSize int
Résultat MMSYSERROR

GetNumberOfWaveOutDevices() public static méthode

public static GetNumberOfWaveOutDevices ( ) : int
Résultat int

GetWaveOutCapabilities() public static méthode

public static GetWaveOutCapabilities ( ) : WAVEOUTCAPS[]
Résultat WAVEOUTCAPS[]

Message() public méthode

public Message ( uint msg, uint dw1, uint dw2 ) : MMSYSERROR
msg uint
dw1 uint
dw2 uint
Résultat MMSYSERROR

Open() public méthode

public Open ( ) : void
Résultat void

OutputDone() public méthode

public OutputDone ( IntPtr wavhdr, IntPtr param2 ) : void
wavhdr System.IntPtr
param2 System.IntPtr
Résultat void

Pause() public méthode

public Pause ( ) : MMSYSERROR
Résultat MMSYSERROR

PrepareHeader() public méthode

public PrepareHeader ( WAVEHDR pwh ) : void
pwh WAVEHDR
Résultat void

Reset() public méthode

public Reset ( ) : void
Résultat void

Restart() public méthode

public Restart ( ) : MMSYSERROR
Résultat MMSYSERROR

UnprepareHeader() public méthode

public UnprepareHeader ( WAVEHDR pwh ) : void
pwh WAVEHDR
Résultat void

WaveOutputPort() public méthode

public WaveOutputPort ( int deviceID, WAVEFORMATEX wf ) : System
deviceID int
wf TOAPI.Types.WAVEFORMATEX
Résultat System

Write() public méthode

public Write ( WAVEHDR pwh ) : void
pwh WAVEHDR
Résultat void

Property Details

fCallbackMethod protected_oe property

protected WaveCallback fCallbackMethod
Résultat WaveCallback