Audacity 3.2.0
Public Member Functions | List of all members
ClipInterface Class Referenceabstract

#include <ClipInterface.h>

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

Public Member Functions

 ~ClipInterface () override
 
virtual AudioSegmentSampleView GetSampleView (size_t iChannel, sampleCount start, size_t length, bool mayThrow=true) const =0
 
virtual size_t NChannels () const =0
 
virtual int GetCentShift () const =0
 
virtual Observer::Subscription SubscribeToCentShiftChange (std::function< void(int)> cb) const =0
 
virtual PitchAndSpeedPreset GetPitchAndSpeedPreset () const =0
 
virtual Observer::Subscription SubscribeToPitchAndSpeedPresetChange (std::function< void(PitchAndSpeedPreset)> cb) const =0
 
- Public Member Functions inherited from ClipTimes
virtual ~ClipTimes ()
 
virtual sampleCount GetVisibleSampleCount () const =0
 
virtual int GetRate () const =0
 
virtual double GetPlayStartTime () const =0
 
virtual double GetPlayEndTime () const =0
 
virtual sampleCount TimeToSamples (double time) const =0
 
virtual double GetStretchRatio () const =0
 

Detailed Description

Definition at line 45 of file ClipInterface.h.

Constructor & Destructor Documentation

◆ ~ClipInterface()

ClipInterface::~ClipInterface ( )
overridedefault

Member Function Documentation

◆ GetCentShift()

virtual int ClipInterface::GetCentShift ( ) const
pure virtual

Implemented in FloatVectorClip, and WaveClip.

Referenced by anonymous_namespace{ClipSegment.cpp}::GetStretchingParameters(), ClipButtonSpecializations< ClipButtonId::Pitch >::GetWidth(), and ClipButtonSpecializations< ClipButtonId::Pitch >::NeedsDrawing().

Here is the caller graph for this function:

◆ GetPitchAndSpeedPreset()

virtual PitchAndSpeedPreset ClipInterface::GetPitchAndSpeedPreset ( ) const
pure virtual

Implemented in WaveClip, and FloatVectorClip.

Referenced by anonymous_namespace{ClipSegment.cpp}::GetStretchingParameters().

Here is the caller graph for this function:

◆ GetSampleView()

virtual AudioSegmentSampleView ClipInterface::GetSampleView ( size_t  iChannel,
sampleCount  start,
size_t  length,
bool  mayThrow = true 
) const
pure virtual

Implemented in FloatVectorClip, and WaveClip.

Referenced by ClipTimeAndPitchSource::Pull().

Here is the caller graph for this function:

◆ NChannels()

virtual size_t ClipInterface::NChannels ( ) const
pure virtual

Implemented in FloatVectorClip, and WaveClip.

Referenced by ClipTimeAndPitchSource::NChannels(), and ClipTimeAndPitchSource::Pull().

Here is the caller graph for this function:

◆ SubscribeToCentShiftChange()

virtual Observer::Subscription ClipInterface::SubscribeToCentShiftChange ( std::function< void(int)>  cb) const
pure virtual

Implemented in FloatVectorClip, and WaveClip.

◆ SubscribeToPitchAndSpeedPresetChange()

virtual Observer::Subscription ClipInterface::SubscribeToPitchAndSpeedPresetChange ( std::function< void(PitchAndSpeedPreset)>  cb) const
pure virtual

Implemented in FloatVectorClip, and WaveClip.


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