Om
1.0.0
A universal framework for multimedia simulation
|
A class that wraps a sound decoder and its data stream source. More...
#include <omSoundDataInputStream.h>
Public Member Functions | |
SoundDataInputStream (const Shared< SoundInputStream > &soundStream, const Shared< DataInputStream > &dataStream) | |
Create a new sound data input stream that wraps the specified sound stream and data stream. More... | |
~SoundDataInputStream () | |
Destroy this sound data input stream and release any resources associated with it. More... | |
virtual Bool | canSeek () const |
Return whether or not seeking is allowed in this input stream. More... | |
virtual Bool | canSeek (Int64 relativeSampleOffset) const |
Return whether or not this input stream's current position can be moved by the specified signed sample offset. More... | |
virtual Int64 | seek (Int64 relativeSampleOffset) |
Move the current sample frame position in the stream by the specified signed amount. More... | |
virtual SoundSize | getSamplesRemaining () const |
Return the number of samples remaining in the sound input stream. More... | |
virtual SampleIndex | getPosition () const |
Return the current position of the stream in samples relative to the start of the stream. More... | |
virtual Size | getChannelCount () const |
Return the number of channels that are in the sound input stream. More... | |
virtual SampleRate | getSampleRate () const |
Return the sample rate of the sound input stream's source audio data. More... | |
virtual SampleType | getNativeSampleType () const |
Return the actual sample type used in the stream. More... | |
virtual Bool | isValid () const |
Return whether or not the stream has a valid source of sound data. More... | |
Public Member Functions inherited from om::sound::base::SoundInputStream | |
virtual | ~SoundInputStream () |
Destroy this sound input stream and release any resources associated with it. More... | |
SoundResult | read (SoundBuffer &buffer, Size numSamples) |
Read the specified number of samples from the input stream into a sound buffer. More... | |
Bool | hasSamplesRemaining () const |
Return whether or not this sound input stream has any samples remaining in the stream. More... | |
Protected Member Functions | |
virtual SoundResult | readSamples (SoundBuffer &inputBuffer, Size numSamples) |
Read the specified number of samples from the input stream into the output buffer. More... | |
A class that wraps a sound decoder and its data stream source.
om::sound::base::SoundDataInputStream::SoundDataInputStream | ( | const Shared< SoundInputStream > & | soundStream, |
const Shared< DataInputStream > & | dataStream | ||
) |
Create a new sound data input stream that wraps the specified sound stream and data stream.
om::sound::base::SoundDataInputStream::~SoundDataInputStream | ( | ) |
Destroy this sound data input stream and release any resources associated with it.
|
virtual |
Return whether or not seeking is allowed in this input stream.
Reimplemented from om::sound::base::SoundInputStream.
|
virtual |
Return whether or not this input stream's current position can be moved by the specified signed sample offset.
Reimplemented from om::sound::base::SoundInputStream.
Move the current sample frame position in the stream by the specified signed amount.
Reimplemented from om::sound::base::SoundInputStream.
|
virtual |
Return the number of samples remaining in the sound input stream.
Implements om::sound::base::SoundInputStream.
|
virtual |
Return the current position of the stream in samples relative to the start of the stream.
Implements om::sound::base::SoundInputStream.
|
virtual |
Return the number of channels that are in the sound input stream.
This is the number of channels of sound data that will be read with each read call to the stream's read() method.
Implements om::sound::base::SoundInputStream.
|
virtual |
Return the sample rate of the sound input stream's source audio data.
Implements om::sound::base::SoundInputStream.
|
virtual |
Return the actual sample type used in the stream.
Implements om::sound::base::SoundInputStream.
|
virtual |
Return whether or not the stream has a valid source of sound data.
Implements om::sound::base::SoundInputStream.
|
protectedvirtual |
Read the specified number of samples from the input stream into the output buffer.
Implements om::sound::base::SoundInputStream.