C# 클래스 NScumm.Core.Audio.PCSpeaker

상속: IAudioStream
파일 보기 프로젝트 열기: scemino/nscumm 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void
PCSpeaker ( int rate = 44100 ) : System
Play ( WaveForm wave, int freq, int length ) : void

Play a note for length ms.

If length is negative, play until told to stop.

ReadBuffer ( short buffer, int count ) : int
Stop ( int delay ) : void

Stop the currently playing note after delay ms.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
GenerateSaw ( int x, int oscLength ) : int
GenerateSine ( int x, int oscLength ) : int
GenerateSquare ( int x, int oscLength ) : int
GenerateTriangle ( int x, int oscLength ) : int

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

PCSpeaker() 공개 메소드

public PCSpeaker ( int rate = 44100 ) : System
rate int
리턴 System

Play() 공개 메소드

Play a note for length ms.
If length is negative, play until told to stop.
public Play ( WaveForm wave, int freq, int length ) : void
wave WaveForm Wave form to play.
freq int Frequency.
length int Length in ms.
리턴 void

ReadBuffer() 공개 메소드

public ReadBuffer ( short buffer, int count ) : int
buffer short
count int
리턴 int

Stop() 공개 메소드

Stop the currently playing note after delay ms.
public Stop ( int delay ) : void
delay int Delay.
리턴 void