C# Class Genode.Audio.SoundReader

Represents a decoder to decode specific audio format.
Inheritance: IDisposable
ファイルを表示 Open project: SirusDoma/Genode Class Usage Examples

Public Methods

Method Description
Check ( Stream stream ) : bool

Check if current SoundReader object can handle a give data from specified Stream.

Dispose ( ) : void

Release all resources used by the SoundReader.

Open ( Stream stream, bool ownStream = false ) : Genode.Audio.SampleInfo

Open a Stream of sound for reading.

Read ( Array samples, long count ) : long

Reads a block of audio samples from the current stream and writes the data to given sample.

Seek ( long sampleOffset ) : void

Sets the current read position of the sample offset.

Method Details

Check() public abstract method

Check if current SoundReader object can handle a give data from specified Stream.
public abstract Check ( Stream stream ) : bool
stream Stream The to check.
return bool

Dispose() public abstract method

Release all resources used by the SoundReader.
public abstract Dispose ( ) : void
return void

Open() public abstract method

Open a Stream of sound for reading.
public abstract Open ( Stream stream, bool ownStream = false ) : Genode.Audio.SampleInfo
stream Stream The to open.
ownStream bool Specify whether the should close the source upon disposing the reader.
return Genode.Audio.SampleInfo

Read() public abstract method

Reads a block of audio samples from the current stream and writes the data to given sample.
public abstract Read ( Array samples, long count ) : long
samples Array The sample array to fill.
count long The maximum number of samples to read.
return long

Seek() public abstract method

Sets the current read position of the sample offset.
public abstract Seek ( long sampleOffset ) : void
sampleOffset long The index of the sample to jump to, relative to the beginning.
return void