Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
MockAudioSegmentFactory Class Reference

#include <MockAudioSegmentFactory.h>

Inheritance diagram for MockAudioSegmentFactory:
[legend]
Collaboration diagram for MockAudioSegmentFactory:
[legend]

Public Member Functions

std::vector< std::shared_ptr< AudioSegment > > CreateAudioSegmentSequence (double, PlaybackDirection) override
 
- Public Member Functions inherited from AudioSegmentFactoryInterface
virtual ~AudioSegmentFactoryInterface ()
 
virtual std::vector< std::shared_ptr< AudioSegment > > CreateAudioSegmentSequence (double playbackStartTime, PlaybackDirection)=0
 

Public Attributes

size_t callCount = 0u
 

Detailed Description

Definition at line 35 of file MockAudioSegmentFactory.h.

Member Function Documentation

◆ CreateAudioSegmentSequence()

std::vector< std::shared_ptr< AudioSegment > > MockAudioSegmentFactory::CreateAudioSegmentSequence ( double  ,
PlaybackDirection   
)
inlineoverridevirtual

Implements AudioSegmentFactoryInterface.

Definition at line 39 of file MockAudioSegmentFactory.h.

40 {
41 ++const_cast<size_t&>(callCount);
42 return { std::make_shared<NiceAudioSegment>() };
43 }

References callCount.

Member Data Documentation

◆ callCount

size_t MockAudioSegmentFactory::callCount = 0u

Definition at line 45 of file MockAudioSegmentFactory.h.

Referenced by CreateAudioSegmentSequence().


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