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.
|
public abstract Check ( Stream stream ) : bool | ||
stream | Stream | The |
return | bool |
public abstract Open ( Stream stream, bool ownStream = false ) : Genode.Audio.SampleInfo | ||
stream | Stream | The |
ownStream | bool | Specify whether the |
return | Genode.Audio.SampleInfo |
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 |
public abstract Seek ( long sampleOffset ) : void | ||
sampleOffset | long | The index of the sample to jump to, relative to the beginning. |
return | void |