C# 클래스 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)).
파일 보기 프로젝트 열기: scemino/nscumm 1 사용 예제들

공개 메소드들

메소드 설명
Clear ( ) : void
EnsureFree ( int needed ) : void
Read ( short dataPtr, int offset, int dataSize ) : int
SampleBuffer ( ) : System
Write ( short value ) : int

메소드 상세

Clear() 공개 메소드

public Clear ( ) : void
리턴 void

EnsureFree() 공개 메소드

public EnsureFree ( int needed ) : void
needed int
리턴 void

Read() 공개 메소드

public Read ( short dataPtr, int offset, int dataSize ) : int
dataPtr short
offset int
dataSize int
리턴 int

SampleBuffer() 공개 메소드

public SampleBuffer ( ) : System
리턴 System

Write() 공개 메소드

public Write ( short value ) : int
value short
리턴 int