C# Class Tsukikage.WinMM.WaveIO.WaveOut

Inheritance: IDisposable
Mostra file Open project: ttsuki/ttsuki Class Usage Examples

Public Methods

Method Description
Close ( ) : void

Close WaveOut and release all resources. WaveOut��‚��A���ׂẴ��\�[�X�������܂��B

EnsureOpened ( ) : void
GetDeviceNames ( ) : string[]

Get names of installed devices. �C���X�g�[���ς݂̃f�o�C�X���𓾂܂��B

IDisposable ( ) : void
Stop ( ) : void

Stop. �~�߂܂��B

WaveOut ( int deviceId, int samplesPerSec, int bitsPerSample, int channels ) : System

Open WaveOut. WaveOut��J���܂��B

Write ( IntPtr src, int length ) : void

Write data to WaveOut. ����o���܂��B

Write ( byte waveform ) : void

Write data to WaveOut. ����o���܂��B

Write ( byte waveform, int offset, int count ) : void

Write data to WaveOut. ����o���܂��B

Private Methods

Method Description
Write ( WaveBuffer buffer ) : void

Write data to WaveOut. ����o���܂��B

Method Details

Close() public method

Close WaveOut and release all resources. WaveOut��‚��A���ׂẴ��\�[�X�������܂��B
public Close ( ) : void
return void

EnsureOpened() public method

public EnsureOpened ( ) : void
return void

GetDeviceNames() public static method

Get names of installed devices. �C���X�g�[���ς݂̃f�o�C�X���𓾂܂��B
public static GetDeviceNames ( ) : string[]
return string[]

IDisposable() public method

public IDisposable ( ) : void
return void

Stop() public method

Stop. �~�߂܂��B
public Stop ( ) : void
return void

WaveOut() public method

Open WaveOut. WaveOut��J���܂��B
public WaveOut ( int deviceId, int samplesPerSec, int bitsPerSample, int channels ) : System
deviceId int WaveOut.WaveMapper���AGetDeviceNames()��index
samplesPerSec int 44100 (Hz)
bitsPerSample int 16 or 8
channels int 2 or 1
return System

Write() public method

Write data to WaveOut. ����o���܂��B
public Write ( IntPtr src, int length ) : void
src System.IntPtr ��
length int �o�C�g��
return void

Write() public method

Write data to WaveOut. ����o���܂��B
public Write ( byte waveform ) : void
waveform byte ��
return void

Write() public method

Write data to WaveOut. ����o���܂��B
public Write ( byte waveform, int offset, int count ) : void
waveform byte ��
offset int �ǂݏo���ʒu
count int �ǂݏo���o�C�g��
return void