C# 클래스 Genode.Audio.SoundReader

Represents a decoder to decode specific audio format.
상속: IDisposable
파일 보기 프로젝트 열기: SirusDoma/Genode 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

Check() 공개 추상적인 메소드

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

Dispose() 공개 추상적인 메소드

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

Open() 공개 추상적인 메소드

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.
리턴 Genode.Audio.SampleInfo

Read() 공개 추상적인 메소드

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.
리턴 long

Seek() 공개 추상적인 메소드

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.
리턴 void