Audacity 3.2.0
|
#include "MixAndRender.h"
#include "BasicUI.h"
#include "Mix.h"
#include "RealtimeEffectList.h"
#include "StretchingSequence.h"
#include "WaveTrack.h"
#include "RealtimeEffectState.h"
#include "Project.h"
Go to the source code of this file.
Typedefs | |
using | WaveTrackConstArray = std::vector< std::shared_ptr< const WaveTrack > > |
Functions | |
Track::Holder | MixAndRender (const TrackIterRange< const WaveTrack > &trackRange, const Mixer::WarpOptions &warpOptions, const wxString &newTrackName, WaveTrackFactory *trackFactory, double rate, sampleFormat format, double startTime, double endTime) |
Mixes together all input tracks, applying any envelopes, per-track real-time effects, volume, panning and real-time effects in the process. More... | |
template<typename Host > | |
std::vector< MixerOptions::StageSpecification > | GetEffectStagesImpl (const Host &host) |
std::vector< MixerOptions::StageSpecification > | GetEffectStages (const WaveTrack &track) |
std::vector< MixerOptions::StageSpecification > | GetMasterEffectStages (const AudacityProject &project) |
using WaveTrackConstArray = std::vector < std::shared_ptr < const WaveTrack > > |
Definition at line 19 of file MixAndRender.cpp.
std::vector< MixerOptions::StageSpecification > GetEffectStages | ( | const WaveTrack & | track | ) |
Definition at line 196 of file MixAndRender.cpp.
References GetEffectStagesImpl().
Referenced by ExportPluginHelpers::CreateMixer(), MixAndRender(), and StereoToMono::ProcessOne().
std::vector< MixerOptions::StageSpecification > GetEffectStagesImpl | ( | const Host & | host | ) |
Definition at line 172 of file MixAndRender.cpp.
References RealtimeEffectList::Get(), and settings().
Referenced by GetEffectStages(), and GetMasterEffectStages().
std::vector< MixerOptions::StageSpecification > GetMasterEffectStages | ( | const AudacityProject & | project | ) |
Definition at line 202 of file MixAndRender.cpp.
References GetEffectStagesImpl(), and project.
Referenced by ExportPluginHelpers::CreateMixer().
Track::Holder MixAndRender | ( | const TrackIterRange< const WaveTrack > & | trackRange, |
const Mixer::WarpOptions & | warpOptions, | ||
const wxString & | newTrackName, | ||
WaveTrackFactory * | factory, | ||
double | rate, | ||
sampleFormat | format, | ||
double | startTime, | ||
double | endTime | ||
) |
Mixes together all input tracks, applying any envelopes, per-track real-time effects, volume, panning and real-time effects in the process.
Takes one or more tracks as input; of all the WaveTracs, it mixes together all input tracks, applying any envelopes, per-track real-time effects, volume, panning and real-time effects in the process. The resulting pair of tracks (stereo) are "rendered" and have no effects, volume, panning, or envelopes. Other sorts of tracks are ignored. If the start and end times passed are the same this is taken as meaning no explicit time range to process, and the whole occupied length of the input tracks is processed.
Channel group properties of the result are copied from the first input track, except that newTrackName
is applied when more than one track is mixed.
newTrackName | used only when there is more than one input track (one mono channel or a stereo pair); else the unique track's name is copied |
Definition at line 22 of file MixAndRender.cpp.
References IteratorRange< Iterator >::begin(), BasicUI::Cancelled, RealtimeEffectList::Clear(), WaveTrackFactory::Create(), StretchingSequence::Create(), Mixer::EffectiveFormat(), IteratorRange< Iterator >::empty(), BasicUI::Failed, anonymous_namespace{ExportPCM.cpp}::format, RealtimeEffectList::Get(), Mixer::GetBuffer(), GetEffectStages(), AudioGraph::IsMono(), BasicUI::MakeProgress(), Mixer::MixGetCurrentTime(), Mixer::Process(), BasicUI::Success, and XO().
Referenced by anonymous_namespace{TrackMenus.cpp}::DoMixAndRender(), EffectPreview(), and WaveTrackMenuTable::OnMergeStereo().
|
static |
Definition at line 219 of file MixAndRender.cpp.
|
static |
Definition at line 224 of file MixAndRender.cpp.
|
static |
Definition at line 229 of file MixAndRender.cpp.
|
static |
Definition at line 234 of file MixAndRender.cpp.