![]() |
Audacity 3.2.0
|
#include "Prefs.h"
#include "SampleCount.h"
#include "SampleFormat.h"
#include "SampleTrack.h"
#include <vector>
#include <functional>
#include <wx/thread.h>
#include <wx/longlong.h>
#include <unordered_set>
#include "XMLMethodRegistry.h"
Go to the source code of this file.
Classes | |
class | WaveTrack |
A Track that contains audio waveform data. More... | |
struct | WaveTrack::Region |
Structure to hold region of a wavetrack and a comparison function for sortability. More... | |
class | WaveTrack::AllClipsIterator |
class | WaveTrack::AllClipsConstIterator |
class | WaveTrack::IntervalData |
class | WaveTrackFactory |
Used to create or clone a WaveTrack, with appropriate context from the project that will own the track. More... | |
Namespaces | |
namespace | BasicUI |
Macros | |
#define | WAVETRACK_MERGE_POINT_TOLERANCE 0.01 |
Typedefs | |
using | SampleBlockFactoryPtr = std::shared_ptr< SampleBlockFactory > |
using | WaveClipHolder = std::shared_ptr< WaveClip > |
using | WaveClipHolders = std::vector< WaveClipHolder > |
using | WaveClipConstHolders = std::vector< std::shared_ptr< const WaveClip > > |
using | WaveClipPointers = std::vector< WaveClip * > |
using | WaveClipConstPointers = std::vector< const WaveClip * > |
using | SampleBlockID = long long |
using | SampleBlockIDSet = std::unordered_set< SampleBlockID > |
using | BlockVisitor = std::function< void(SampleBlock &) > |
using | BlockInspector = std::function< void(const SampleBlock &) > |
using | WaveTrackIORegistry = XMLMethodRegistry< WaveTrack > |
Functions | |
ENUMERATE_TRACK_TYPE (WaveTrack) | |
void | VisitBlocks (TrackList &tracks, BlockVisitor visitor, SampleBlockIDSet *pIDs=nullptr) |
WAVE_TRACK_API void | InspectBlocks (const TrackList &tracks, BlockInspector inspector, SampleBlockIDSet *pIDs=nullptr) |
WAVE_TRACK_API bool | GetEditClipsCanMove () |
DECLARE_XML_METHOD_REGISTRY (WAVE_TRACK_API, WaveTrackIORegistry) | |
Variables | |
WAVE_TRACK_API BoolSetting | EditClipsCanMove |
WAVE_TRACK_API StringSetting | AudioTrackNameSetting |
#define WAVETRACK_MERGE_POINT_TOLERANCE 0.01 |
Definition at line 46 of file WaveTrack.h.
using BlockInspector = std::function< void(const SampleBlock&) > |
Definition at line 548 of file WaveTrack.h.
using BlockVisitor = std::function< void(SampleBlock&) > |
Definition at line 547 of file WaveTrack.h.
using SampleBlockFactoryPtr = std::shared_ptr<SampleBlockFactory> |
Definition at line 27 of file WaveTrack.h.
using SampleBlockID = long long |
Definition at line 544 of file WaveTrack.h.
using SampleBlockIDSet = std::unordered_set<SampleBlockID> |
Definition at line 545 of file WaveTrack.h.
using WaveClipConstHolders = std::vector < std::shared_ptr< const WaveClip > > |
Definition at line 37 of file WaveTrack.h.
using WaveClipConstPointers = std::vector < const WaveClip* > |
Definition at line 41 of file WaveTrack.h.
using WaveClipHolder = std::shared_ptr< WaveClip > |
Definition at line 35 of file WaveTrack.h.
using WaveClipHolders = std::vector < WaveClipHolder > |
Definition at line 36 of file WaveTrack.h.
using WaveClipPointers = std::vector < WaveClip* > |
Definition at line 40 of file WaveTrack.h.
Definition at line 614 of file WaveTrack.h.
DECLARE_XML_METHOD_REGISTRY | ( | WAVE_TRACK_API | , |
WaveTrackIORegistry | |||
) |
ENUMERATE_TRACK_TYPE | ( | WaveTrack | ) |
WAVE_TRACK_API bool GetEditClipsCanMove | ( | ) |
Definition at line 2586 of file WaveTrack.cpp.
References EditClipsCanMove, Setting< T >::Read(), and SyncLockTracks.
Referenced by WaveTrack::ExpandCutLine(), WaveTrack::HandleClear(), WaveTrack::PasteWaveTrack(), and Generator::Process().
WAVE_TRACK_API void InspectBlocks | ( | const TrackList & | tracks, |
BlockInspector | inspector, | ||
SampleBlockIDSet * | pIDs = nullptr |
||
) |
Definition at line 2517 of file WaveTrack.cpp.
References VisitBlocks().
Referenced by anonymous_namespace{HistoryWindow.cpp}::SpaceUsageCalculator::CalculateUsage(), ProjectFileIO::CopyTo(), EstimateRemovedBlocks(), ProjectFileIO::GetCurrentUsage(), ProjectFileIO::SaveProject(), and ProjectFileIO::ShouldCompact().
void VisitBlocks | ( | TrackList & | tracks, |
BlockVisitor | visitor, | ||
SampleBlockIDSet * | pIDs = nullptr |
||
) |
Definition at line 2496 of file WaveTrack.cpp.
References TrackList::Any().
Referenced by InspectBlocks().
|
extern |
Definition at line 2576 of file WaveTrack.cpp.
Referenced by TracksPrefs::Commit(), WaveTrack::GetDefaultAudioTrackNamePreference(), and TracksPrefs::PopulateOrExchange().
|
extern |
Definition at line 2595 of file WaveTrack.cpp.
Referenced by TracksBehaviorsPrefs::Commit(), GetEditClipsCanMove(), BenchmarkDialog::OnRun(), TracksBehaviorsPrefs::PopulateOrExchange(), and WaveTrack::SyncLockAdjust().