Audacity 3.2.0
|
#include <ImportUtils.h>
Static Public Member Functions | |
static sampleFormat | ChooseFormat (sampleFormat effectiveFormat) |
Choose appropriate format, which will not be narrower than the specified one. More... | |
static std::shared_ptr< WaveTrack > | NewWaveTrack (WaveTrackFactory &trackFactory, unsigned nChannels, sampleFormat effectiveFormat, double rate) |
static void | ShowMessageBox (const TranslatableString &message, const TranslatableString &caption=XO("Import Project")) |
static void | ForEachChannel (TrackList &trackList, const std::function< void(WaveChannel &)> &op) |
Iterates over channels in each wave track from the list. More... | |
static void | ForEachChannel (WaveTrack &track, const std::function< void(WaveChannel &)> &op) |
Iterates over channels in one wave track. More... | |
static void | FinalizeImport (TrackHolders &outTracks, const std::vector< std::shared_ptr< WaveTrack > > &importedStreams) |
Flushes the given channels and moves them to outTracks . More... | |
static void | FinalizeImport (TrackHolders &outTracks, TrackList &&trackList) |
static void | FinalizeImport (TrackHolders &outTracks, WaveTrack &track) |
Flushes the given channels and moves them to outTracks . More... | |
Definition at line 30 of file ImportUtils.h.
|
static |
Choose appropriate format, which will not be narrower than the specified one.
Definition at line 19 of file ImportUtils.cpp.
References floatSample, anonymous_namespace{ExportPCM.cpp}::format, int16Sample, and QualitySettings::SampleFormatChoice().
Referenced by FFmpegImportFileHandle::Import(), PCMImportFileHandle::Import(), ImportRaw(), NewWaveTrack(), and PCMImportFileHandle::PCMImportFileHandle().
|
static |
Flushes the given channels and moves them to outTracks
.
Definition at line 49 of file ImportUtils.cpp.
References FinalizeImport().
Referenced by FinalizeImport(), FFmpegImportFileHandle::Import(), FLACImportFileHandle::Import(), anonymous_namespace{ImportMP3_MPG123.cpp}::MP3ImportFileHandle::Import(), OggImportFileHandle::Import(), OpusImportFileHandle::Import(), PCMImportFileHandle::Import(), and WavPackImportFileHandle::Import().
|
static |
Flushes the given channels and moves them to outTracks
trackList
is emptied
Definition at line 55 of file ImportUtils.cpp.
|
static |
Flushes the given channels and moves them to outTracks
.
Definition at line 67 of file ImportUtils.cpp.
References WaveTrack::Flush().
|
static |
Iterates over channels in each wave track from the list.
Definition at line 73 of file ImportUtils.cpp.
References TrackList::Any().
Referenced by anonymous_namespace{ImportMP3_MPG123.cpp}::MP3ImportFileHandle::Import(), OggImportFileHandle::Import(), OpusImportFileHandle::Import(), PCMImportFileHandle::Import(), WavPackImportFileHandle::Import(), ImportRaw(), MyFLACFile::write_callback(), and FFmpegImportFileHandle::WriteData().
|
static |
Iterates over channels in one wave track.
Definition at line 84 of file ImportUtils.cpp.
References WaveTrack::Channels().
|
static |
Builds a wave track The format will not be narrower than the specified one.
Definition at line 35 of file ImportUtils.cpp.
References ChooseFormat(), and WaveTrackFactory::Create().
Referenced by FLACImportFileHandle::Import(), OpusImportFileHandle::Import(), and anonymous_namespace{ImportMP3_MPG123.cpp}::MP3ImportFileHandle::SetupOutputFormat().
|
static |
Definition at line 43 of file ImportUtils.cpp.
References BasicUI::ShowMessageBox().
Referenced by AUPImportFileHandle::HandleNoteTrack(), AUPImportFileHandle::HandleProject(), AUPImportFileHandle::HandleTimeTrack(), AUPImportFileHandle::Import(), WavPackImportFileHandle::Import(), LOFImportFileHandle::lofOpenFiles(), OpusImportFileHandle::NotifyImportFailed(), and AUPImportFileHandle::Open().