Audacity 3.2.0
Classes | Namespaces | Typedefs | Functions
WaveTrackUtilities.h File Reference
#include "IteratorX.h"
#include "WaveTrack.h"
#include <unordered_set>
#include <functional>
Include dependency graph for WaveTrackUtilities.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  WaveTrackUtilities::AllClipsIterator
 
class  WaveTrackUtilities::AllClipsConstIterator
 

Namespaces

namespace  WaveTrackUtilities
 

Typedefs

using ProgressReporter = std::function< void(double)>
 
using WaveTrackUtilities::SampleBlockID = long long
 
using WaveTrackUtilities::SampleBlockIDSet = std::unordered_set< SampleBlockID >
 
using WaveTrackUtilities::BlockVisitor = std::function< void(const std::shared_ptr< SampleBlock > &)>
 
using WaveTrackUtilities::BlockInspector = std::function< void(std::shared_ptr< const SampleBlock >)>
 
using WaveTrackUtilities::IntervalHolder = std::shared_ptr< WaveTrack::Interval >
 
using WaveTrackUtilities::IntervalHolders = std::vector< IntervalHolder >
 
using WaveTrackUtilities::IntervalConstHolder = std::shared_ptr< const WaveTrack::Interval >
 
using WaveTrackUtilities::ProgressReport = std::function< bool(double)>
 

Functions

IteratorRange< AllClipsIterator > WaveTrackUtilities::GetAllClips (WaveTrack &track)
 
IteratorRange< AllClipsConstIterator > WaveTrackUtilities::GetAllClips (const WaveTrack &track)
 
WAVE_TRACK_API bool WaveTrackUtilities::Reverse (WaveTrack &track, sampleCount start, sampleCount len, const ProgressReport &report={})
 
WAVE_TRACK_API sampleCount WaveTrackUtilities::GetSequenceSamplesCount (const WaveTrack &track)
 
WAVE_TRACK_API size_t WaveTrackUtilities::CountBlocks (const WaveTrack &track)
 
WAVE_TRACK_API void WaveTrackUtilities::CloseLock (WaveTrack &track) noexcept
 Should be called upon project close. Not balanced by unlocking calls. More...
 
WAVE_TRACK_API bool WaveTrackUtilities::RemoveCutLine (WaveTrack &track, double cutLinePosition)
 Remove cut line, without expanding the audio in it. More...
 
WAVE_TRACK_API void WaveTrackUtilities::ExpandCutLine (WaveTrack &track, double cutLinePosition, double *cutlineStart=nullptr, double *cutlineEnd=nullptr)
 
WAVE_TRACK_API bool WaveTrackUtilities::HasHiddenData (const WaveTrack &track)
 Whether any clips have hidden audio. More...
 
WAVE_TRACK_API void WaveTrackUtilities::DiscardTrimmed (WaveTrack &track)
 Remove hidden audio from all clips. More...
 
WAVE_TRACK_API void WaveTrackUtilities::VisitBlocks (TrackList &tracks, BlockVisitor visitor, SampleBlockIDSet *pIDs=nullptr)
 
WAVE_TRACK_API void WaveTrackUtilities::InspectBlocks (const TrackList &tracks, BlockInspector inspector, SampleBlockIDSet *pIDs=nullptr)
 
WAVE_TRACK_API WaveTrack::IntervalConstHolders WaveTrackUtilities::GetClipsIntersecting (const WaveTrack &track, double t0, double t1)
 
WAVE_TRACK_API void WaveTrackUtilities::ExpandClipTillNextOne (const WaveTrack &track, WaveTrack::Interval &interval)
 

Typedef Documentation

◆ ProgressReporter

using ProgressReporter = std::function<void(double)>

Definition at line 26 of file WaveTrackUtilities.h.