C# Class NScumm.Core.Audio.PCSpeaker

Inheritance: IAudioStream
Afficher le fichier Open project: scemino/nscumm Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
GenerateSaw ( int x, int oscLength ) : int
GenerateSine ( int x, int oscLength ) : int
GenerateSquare ( int x, int oscLength ) : int
GenerateTriangle ( int x, int oscLength ) : int

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

PCSpeaker() public méthode

public PCSpeaker ( int rate = 44100 ) : System
rate int
Résultat System

Play() public méthode

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

ReadBuffer() public méthode

public ReadBuffer ( short buffer, int count ) : int
buffer short
count int
Résultat int

Stop() public méthode

Stop the currently playing note after delay ms.
public Stop ( int delay ) : void
delay int Delay.
Résultat void