Om
1.0.0
A universal framework for multimedia simulation
|
A class that handles playback of time sequences of sound data for a single sound stream. More...
#include <omEngineSoundSequencerTrack.h>
Public Member Functions | |
SoundSequencerTrack () | |
Create a new sound sequencer track that has no sequences that is can play. More... | |
virtual Size | getSequenceCount () const |
Return the number of sequences that this track supports playing. More... | |
virtual Sequence * | getSequence (Index sequenceIndex) const |
Return a pointer to the sequence at the specified index in this track. More... | |
void | setSequence (Index sequenceIndex, Sequence *newSequence) |
Set a pointer to the sequence at the given index. More... | |
SoundTrack * | getSequenceTrack (Index sequenceIndex) const |
Return a pointer to the sound track that is associated with the sequence with the given index. More... | |
void | setSequenceTrack (Index sequenceIndex, SoundTrack *newTrack) |
Set a pointer to the sound track that is associated with the sequence with the given index. More... | |
virtual Bool | getSequenceIndex (Sequence *sequence, Index &sequenceIndex) const |
Get the index of the specified sequence in this track. More... | |
Bool | addSequence (Sequence *sequence, SoundTrack *track) |
Add a new sequence to this sequencer track that plays the specified sound track. More... | |
void | clearSequences () |
Remove all sequences from this sound sequencer track. More... | |
virtual Bool | playSequence (Index sequenceIndex, PlaybackID playbackID, const Playback &playback) |
Play the specified sequence with the given playback state using this sequencer track. More... | |
virtual void | updatePlayback (PlaybackID playbackID, const Playback &playback) |
Update the playback state for a currently playing sequence in this sequencer track. More... | |
virtual void | pausePlayback (PlaybackID playbackID) |
Pause a currently playing sequence. More... | |
virtual void | resumePlayback (PlaybackID playbackID) |
Resume playback for a currently paused sequence. More... | |
virtual void | stopPlayback (PlaybackID playbackID) |
Completely stop playback for the specified sequence. More... | |
virtual void | pauseAll () |
Simultaneously pause the playback of all sequences in this sequencer track. More... | |
virtual void | resumeAll () |
Simultaneously resume the playback of all sequences in this sequencer track. More... | |
virtual void | stopAll () |
Simultaneously stop the playback of all sequences in this sequencer track. More... | |
const ChannelLayout & | getOutputChannelLayout () const |
Return the channel layout that is used for the output of this track. More... | |
void | setOutputChannelLayout (const ChannelLayout &newChannelLayout) |
Set the channel layout that is used for the output of this track. More... | |
SampleRate | getOutputSampleRate () const |
Return the sample rate that is used for the output of this track. More... | |
void | setOutputSampleRate (SampleRate newSampleRate) |
Set the sample rate that is used for the output of this track. More... | |
SoundResult | process (const SoundFrame &input, SoundFrame &output, Size numSamples) |
Render the output of this track given the specified input frame. More... | |
virtual const ResourceType & | getResourceType () const |
Return the resource type of this object's concrete type. More... | |
Public Member Functions inherited from om::engine::base::SequencerTrack | |
virtual | ~SequencerTrack () |
Destroy a sequencer track and release internal resources. More... | |
Static Public Attributes | |
static const ResourceType | RESOURCE_TYPE |
The resource type for a sound sequencer track. More... | |
A class that handles playback of time sequences of sound data for a single sound stream.
om::engine::sound::SoundSequencerTrack::SoundSequencerTrack | ( | ) |
Create a new sound sequencer track that has no sequences that is can play.
|
virtual |
Return the number of sequences that this track supports playing.
Implements om::engine::base::SequencerTrack.
|
virtual |
Return a pointer to the sequence at the specified index in this track.
Implements om::engine::base::SequencerTrack.
|
inline |
Set a pointer to the sequence at the given index.
|
inline |
Return a pointer to the sound track that is associated with the sequence with the given index.
|
inline |
Set a pointer to the sound track that is associated with the sequence with the given index.
|
virtual |
Get the index of the specified sequence in this track.
Implements om::engine::base::SequencerTrack.
Bool om::engine::sound::SoundSequencerTrack::addSequence | ( | Sequence * | sequence, |
SoundTrack * | track | ||
) |
Add a new sequence to this sequencer track that plays the specified sound track.
void om::engine::sound::SoundSequencerTrack::clearSequences | ( | ) |
Remove all sequences from this sound sequencer track.
|
virtual |
Play the specified sequence with the given playback state using this sequencer track.
Implements om::engine::base::SequencerTrack.
|
virtual |
Update the playback state for a currently playing sequence in this sequencer track.
Implements om::engine::base::SequencerTrack.
|
virtual |
Pause a currently playing sequence.
Implements om::engine::base::SequencerTrack.
|
virtual |
Resume playback for a currently paused sequence.
Implements om::engine::base::SequencerTrack.
|
virtual |
Completely stop playback for the specified sequence.
Implements om::engine::base::SequencerTrack.
|
virtual |
Simultaneously pause the playback of all sequences in this sequencer track.
Implements om::engine::base::SequencerTrack.
|
virtual |
Simultaneously resume the playback of all sequences in this sequencer track.
Implements om::engine::base::SequencerTrack.
|
virtual |
Simultaneously stop the playback of all sequences in this sequencer track.
Implements om::engine::base::SequencerTrack.
|
inline |
Return the channel layout that is used for the output of this track.
|
inline |
Set the channel layout that is used for the output of this track.
|
inline |
Return the sample rate that is used for the output of this track.
|
inline |
Set the sample rate that is used for the output of this track.
SoundResult om::engine::sound::SoundSequencerTrack::process | ( | const SoundFrame & | input, |
SoundFrame & | output, | ||
Size | numSamples | ||
) |
Render the output of this track given the specified input frame.
|
virtual |
Return the resource type of this object's concrete type.
Implements om::engine::base::SequencerTrack.
|
static |
The resource type for a sound sequencer track.