C# Class NScumm.Scumm.Audio.SampleBuffer

Optimized for use with periodical read/write phases when the buffer is filled in a write phase and completely read in a read phase. The growing strategy is optimized for repeated small (e.g. 2 bytes) single writes resulting in large buffers (avg.: 4KB, max: 18KB @ 16bit/22.050kHz (MM sound21)).
Afficher le fichier Open project: scemino/nscumm Class Usage Examples

Méthodes publiques

Méthode Description
Clear ( ) : void
EnsureFree ( int needed ) : void
Read ( short dataPtr, int offset, int dataSize ) : int
SampleBuffer ( ) : System
Write ( short value ) : int

Method Details

Clear() public méthode

public Clear ( ) : void
Résultat void

EnsureFree() public méthode

public EnsureFree ( int needed ) : void
needed int
Résultat void

Read() public méthode

public Read ( short dataPtr, int offset, int dataSize ) : int
dataPtr short
offset int
dataSize int
Résultat int

SampleBuffer() public méthode

public SampleBuffer ( ) : System
Résultat System

Write() public méthode

public Write ( short value ) : int
value short
Résultat int