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)).
Datei anzeigen Open project: scemino/nscumm Class Usage Examples

Public Methods

Method 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 method

public Clear ( ) : void
return void

EnsureFree() public method

public EnsureFree ( int needed ) : void
needed int
return void

Read() public method

public Read ( short dataPtr, int offset, int dataSize ) : int
dataPtr short
offset int
dataSize int
return int

SampleBuffer() public method

public SampleBuffer ( ) : System
return System

Write() public method

public Write ( short value ) : int
value short
return int