C# 클래스 Sharpex2D.Audio.WaveOut.WaveOut

파일 보기 프로젝트 열기: ThuCommix/Sharpex2D 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Callback void
CreateWaveOut System.IntPtr
RaisePlaybackChanged void
StartPlayback void

공개 메소드들

메소드 설명
Dispose ( ) : void

Disposes the object.

Dispose ( bool disposing ) : void

Disposes the object.

GetDevice ( int device ) : WaveOutCaps

Gets the caps of the device.

GetDeviceCount ( ) : int

Gets the available device amount.

GetDevices ( ) : Sharpex2D.Audio.WaveOut.WaveOutCaps[]

Gets all devices.

Initialize ( byte audioData, WaveFormat format ) : void

Initializes the playback.

Pause ( ) : void

Pause the wavestream.

Play ( ) : void

Plays the wavestream.

Resume ( ) : void

Resumes the wavestream.

SetVolume ( IntPtr waveOut, float left, float right ) : void

Sets the Volume.

Stop ( ) : void

Stops the wavestream.

WaveOut ( ) : System

Initializes a new WaveOut class.

비공개 메소드들

메소드 설명
Callback ( IntPtr handle, WaveMessage msg, UIntPtr user, WaveHdr header, UIntPtr reserved ) : void

Callback func.

CreateWaveOut ( ) : IntPtr

Creates new WaveOut.

RaisePlaybackChanged ( ) : void

Raises the PlaybackChanged event.

StartPlayback ( ) : void

Starts the playback.

메소드 상세

Dispose() 공개 메소드

Disposes the object.
public Dispose ( ) : void
리턴 void

Dispose() 공개 메소드

Disposes the object.
public Dispose ( bool disposing ) : void
disposing bool The disposing state.
리턴 void

GetDevice() 공개 정적인 메소드

Gets the caps of the device.
public static GetDevice ( int device ) : WaveOutCaps
device int The Device.
리턴 WaveOutCaps

GetDeviceCount() 공개 정적인 메소드

Gets the available device amount.
public static GetDeviceCount ( ) : int
리턴 int

GetDevices() 공개 정적인 메소드

Gets all devices.
public static GetDevices ( ) : Sharpex2D.Audio.WaveOut.WaveOutCaps[]
리턴 Sharpex2D.Audio.WaveOut.WaveOutCaps[]

Initialize() 공개 메소드

Initializes the playback.
public Initialize ( byte audioData, WaveFormat format ) : void
audioData byte The AudioData.
format WaveFormat The WaveFormat.
리턴 void

Pause() 공개 메소드

Pause the wavestream.
public Pause ( ) : void
리턴 void

Play() 공개 메소드

Plays the wavestream.
public Play ( ) : void
리턴 void

Resume() 공개 메소드

Resumes the wavestream.
public Resume ( ) : void
리턴 void

SetVolume() 공개 정적인 메소드

Sets the Volume.
public static SetVolume ( IntPtr waveOut, float left, float right ) : void
waveOut System.IntPtr The WaveOut.
left float The Left.
right float The Right.
리턴 void

Stop() 공개 메소드

Stops the wavestream.
public Stop ( ) : void
리턴 void

WaveOut() 공개 메소드

Initializes a new WaveOut class.
public WaveOut ( ) : System
리턴 System