Audacity 3.2.0
|
Go to the source code of this file.
Typedefs | |
using | OnProjectTempoChange = AttachedVirtualFunction< struct OnProjectTempoChangeTag, void, ChannelGroup, const std::optional< double > &, double > |
Method to set project tempo on a channel group, defaulting to no-op. More... | |
Functions | |
DECLARE_EXPORTED_ATTACHED_VIRTUAL (STRETCHING_SEQUENCE_API, OnProjectTempoChange) | |
STRETCHING_SEQUENCE_API void | DoProjectTempoChange (ChannelGroup &group, double newTempo) |
STRETCHING_SEQUENCE_API const std::optional< double > & | GetProjectTempo (const ChannelGroup &group) |
using OnProjectTempoChange = AttachedVirtualFunction< struct OnProjectTempoChangeTag, void, ChannelGroup, const std::optional<double>& , double > |
Method to set project tempo on a channel group, defaulting to no-op.
Definition at line 17 of file TempoChange.h.
DECLARE_EXPORTED_ATTACHED_VIRTUAL | ( | STRETCHING_SEQUENCE_API | , |
OnProjectTempoChange | |||
) |
STRETCHING_SEQUENCE_API void DoProjectTempoChange | ( | ChannelGroup & | group, |
double | newTempo | ||
) |
Definition at line 41 of file TempoChange.cpp.
References AttachedVirtualFunction< Tag, Return, This, Arguments >::Call(), and BasicUI::Get().
Referenced by ProjectFileManager::DoImport(), WaveTrack::DuplicateWithOtherTempo(), ProjectTempoListener::OnProjectTempoChange(), BenchmarkDialog::OnRun(), and ProjectTempoListener::ProjectTempoListener().
STRETCHING_SEQUENCE_API const std::optional< double > & GetProjectTempo | ( | const ChannelGroup & | group | ) |
Definition at line 48 of file TempoChange.cpp.
References BasicUI::Get().
Referenced by WaveTrack::ClearAndPaste(), WaveTrack::ClearAndPasteAtSameTempo(), WaveTrack::DoCreateClip(), anonymous_namespace{EditMenus.cpp}::DoPasteNothingSelected(), WaveTrack::InsertClip(), WaveTrack::PasteWaveTrack(), and WaveTrack::PasteWaveTrackAtSameTempo().