#include <sequencecontrolleraudio.h>
Public Member Functions | |
| SequenceControllerAudio (SequenceService &service, SequencePlayer &player, SequenceEditor &editor) | |
| double | segmentAudioStartTimeChange (const std::string &trackID, const std::string &segmentID, double time) |
| const SequenceTrackSegment * | insertSegment (const std::string &trackID, double time) override |
| void | deleteSegment (const std::string &trackID, const std::string &segmentID) override |
| std::string | insertAudioSegment (const std::string &trackID, double time, const std::string &audioBufferID) |
| std::string | insertAudioSegment (const std::string &trackID, double time, const std::string &audioBufferID, double duration, double startTimeInSegment) |
| void | addNewAudioTrack () |
| void | insertTrack (rttr::type type) override |
| void | changeAudioSegmentAudioBuffer (const std::string &trackID, const std::string &segmentID, const std::string &audioBufferID) |
| double | segmentAudioStartTimeInSegmentChange (const std::string &trackID, const std::string &segmentID, double time) |
| double | segmentAudioDurationChange (const std::string &trackID, const std::string &segmentID, double newDuration) |
Public Member Functions inherited from SequenceController | |
| SequenceController (SequenceService &service, SequencePlayer &player, SequenceEditor &editor) | |
| virtual | ~SequenceController ()=default |
| void | changeTrackName (const std::string &trackID, const std::string &name) |
| void | changeSegmentLabel (const std::string &trackID, const std::string &segmentID, const std::string &newLabel) |
| void | assignNewOutputID (const std::string &trackID, const std::string &outputID) |
| void | deleteTrack (const std::string &deleteTrackID) |
| void | moveTrackUp (const std::string &trackID) |
| void | moveTrackDown (const std::string &trackID) |
| const SequenceTrack * | getTrack (const std::string &trackID) const |
| const SequenceTrackSegment * | getSegment (const std::string &trackID, const std::string &segmentID) const |
| void | changeTrackHeight (const std::string &trackID, float newHeight) |
Additional Inherited Members | |
Protected Member Functions inherited from SequenceController | |
| Sequence & | getSequence () |
| SequenceTrackSegment * | findSegment (const std::string &trackID, const std::string &segmentID) |
| SequenceTrack * | findTrack (const std::string &trackID) |
| void | deleteObjectFromSequencePlayer (const std::string &id) |
| void | updateTracks () |
| void | performEditAction (std::function< void()> action) |
| std::vector< std::unique_ptr< rtti::Object > > & | getPlayerOwnedObjects () |
| std::unordered_set< std::string > & | getPlayerReadObjectIDs () |
Protected Attributes inherited from SequenceController | |
| SequencePlayer & | mPlayer |
| SequenceEditor & | mEditor |
| SequenceService & | mService |
The SequenceControllerAudio is responsible for manipulating, editing and inserting audio segments on an audio track
| SequenceControllerAudio | ( | SequenceService & | service, |
| SequencePlayer & | player, | ||
| SequenceEditor & | editor | ||
| ) |
Constructor
| service | reference to sequence service |
| player | reference to sequence player |
| editor | reference to sequence editor |
| void addNewAudioTrack | ( | ) |
Adds a new audio track to the sequence
| void changeAudioSegmentAudioBuffer | ( | const std::string & | trackID, |
| const std::string & | segmentID, | ||
| const std::string & | audioBufferID | ||
| ) |
Changes to buffer the audio segment points to
| trackID | track id of the track containing the segment |
| segmentID | the segment id |
| audioBufferID | the new audio segment buffer id |
|
overridevirtual |
Deletes a segment from the track
| trackID | the id of the track containing the segment |
| segmentID | the id of the segment to delete |
Implements SequenceController.
| std::string insertAudioSegment | ( | const std::string & | trackID, |
| double | time, | ||
| const std::string & | audioBufferID | ||
| ) |
Inserts an audio segment at given time with a certain buffer id. Returns id of newly inserted segment
| trackID | the id of the track where to insert the segment |
| time | the time at when to insert the segment |
| audioBufferID | the buffer id of the audio segment |
| std::string insertAudioSegment | ( | const std::string & | trackID, |
| double | time, | ||
| const std::string & | audioBufferID, | ||
| double | duration, | ||
| double | startTimeInSegment | ||
| ) |
Inserts an audio segment at given time with a certain buffer id, certain duration and a certain start time in segment
| trackID | trackID the id of the track where to insert the segment |
| time | the time at when to insert the segment |
| audioBufferID | the buffer id of the audio segment |
| duration | the duration of the segment |
| startTimeInSegment | the start time within the segment |
|
overridevirtual |
Inserts a segment, don;t use this function. Instead use insertAudioSegment
| trackID | track id of the track |
| time | the time at which to insert the segment |
Implements SequenceController.
|
overridevirtual |
Inserts new track, type must be of SequenceTrackAudio
| type | the type of track to insert, type must be of SequenceTrackAudio |
Implements SequenceController.
| double segmentAudioDurationChange | ( | const std::string & | trackID, |
| const std::string & | segmentID, | ||
| double | newDuration | ||
| ) |
Changes the duration of the audio segment
| trackID | trackID track id of the track containing the segment |
| segmentID | segmentID the segment id |
| newDuration | the new duration of the audio buffer |
| double segmentAudioStartTimeChange | ( | const std::string & | trackID, |
| const std::string & | segmentID, | ||
| double | time | ||
| ) |
Changes the start time of an audio segment on the track
| trackID | the track id of the track containing the segment |
| segmentID | the segment id |
| time | the new start time of the segment |
| double segmentAudioStartTimeInSegmentChange | ( | const std::string & | trackID, |
| const std::string & | segmentID, | ||
| double | time | ||
| ) |
Changes the start time within the audio buffer of the audio segment
| trackID | trackID track id of the track containing the segment |
| segmentID | segmentID the segment id |
| time | the new start time within the audio buffer |