Audacity 3.2.0
Public Member Functions | Private Attributes | List of all members
TestWaveTrackMaker Class Referencefinal

#include <TestWaveTrackMaker.h>

Collaboration diagram for TestWaveTrackMaker:
[legend]

Public Member Functions

 TestWaveTrackMaker (int sampleRate, SampleBlockFactoryPtr)
 
std::shared_ptr< WaveTrackTrack (const WaveClipHolders &clips) const
 
std::shared_ptr< WaveTrackTrack (const WaveClipHolder &clip) const
 

Private Attributes

const int mSampleRate
 
const SampleBlockFactoryPtr mFactory
 

Detailed Description


Audacity: A Digital Audio Editor

TestWaveTrackMaker.h

Matthieu Hodgkinson

Definition at line 18 of file TestWaveTrackMaker.h.

Constructor & Destructor Documentation

◆ TestWaveTrackMaker()

TestWaveTrackMaker::TestWaveTrackMaker ( int  sampleRate,
SampleBlockFactoryPtr  factory 
)

Definition at line 21 of file TestWaveTrackMaker.cpp.

24 , mFactory { factory }
25{
26}
static RegisteredToolbarFactory factory
const SampleBlockFactoryPtr mFactory

Member Function Documentation

◆ Track() [1/2]

std::shared_ptr< WaveTrack > TestWaveTrackMaker::Track ( const WaveClipHolder clip) const

Definition at line 40 of file TestWaveTrackMaker.cpp.

41{
42 return Track(WaveClipHolders { clip });
43}
std::vector< WaveClipHolder > WaveClipHolders
Definition: WaveClip.h:45
std::shared_ptr< WaveTrack > Track(const WaveClipHolders &clips) const

References Track().

Here is the call graph for this function:

◆ Track() [2/2]

std::shared_ptr< WaveTrack > TestWaveTrackMaker::Track ( const WaveClipHolders clips) const

Definition at line 29 of file TestWaveTrackMaker.cpp.

30{
31 const auto track = WaveTrack::Create(
33 tracks->Add(track);
34 for (const auto& clip : clips)
35 track->InsertInterval(clip, true);
36 return track;
37}
const auto tracks
static Holder Create(const SampleBlockFactoryPtr &pFactory, sampleFormat format, double rate)
Factory builds all AttachedTrackObjects.
Definition: WaveTrack.cpp:505

References WaveTrack::Create(), floatSample, mFactory, mSampleRate, and tracks.

Referenced by TEST_CASE(), and Track().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ mFactory

const SampleBlockFactoryPtr TestWaveTrackMaker::mFactory
private

Definition at line 27 of file TestWaveTrackMaker.h.

Referenced by Track().

◆ mSampleRate

const int TestWaveTrackMaker::mSampleRate
private

Definition at line 26 of file TestWaveTrackMaker.h.

Referenced by Track().


The documentation for this class was generated from the following files: