C# Class NScumm.Core.Audio.Decoders.RawStream

This is a stream, which allows for playing raw PCM data from a stream.
Inheritance: ISeekableAudioStream
Mostrar archivo Open project: scemino/nscumm Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
RawStream ( AudioFlags flags, int rate, bool disposeStream, Stream stream ) : System
ReadBuffer ( short buffer, int count ) : int
Rewind ( ) : bool
Seek ( Timestamp wh ) : bool

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
FillBuffer ( int maxSamples ) : int
ReadEndianSample ( byte ptr, int offset ) : short

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

RawStream() public method

public RawStream ( AudioFlags flags, int rate, bool disposeStream, Stream stream ) : System
flags AudioFlags
rate int
disposeStream bool
stream Stream
return System

ReadBuffer() public method

public ReadBuffer ( short buffer, int count ) : int
buffer short
count int
return int

Rewind() public method

public Rewind ( ) : bool
return bool

Seek() public method

public Seek ( Timestamp wh ) : bool
wh Timestamp
return bool