C# Класс Genode.Audio.SoundReader

Represents a decoder to decode specific audio format.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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