Audacity 3.2.0
Public Member Functions | List of all members
WaveClipListener Struct Referenceabstract

#include <WaveClip.h>

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

Public Member Functions

virtual ~WaveClipListener ()=0
 
virtual void MarkChanged () noexcept=0
 
virtual void Invalidate ()=0
 
virtual void WriteXMLAttributes (XMLWriter &writer) const
 
virtual bool HandleXMLAttribute (const std::string_view &attr, const XMLAttributeValueView &valueView)
 
virtual void MakeStereo (WaveClipListener &&other, bool aligned)
 
virtual void SwapChannels ()
 Default implementation does nothing. More...
 
virtual void Erase (size_t index)
 

Detailed Description

Definition at line 52 of file WaveClip.h.

Constructor & Destructor Documentation

◆ ~WaveClipListener()

WaveClipListener::~WaveClipListener ( )
pure virtualdefault

Member Function Documentation

◆ Erase()

void WaveClipListener::Erase ( size_t  index)
virtual

Erase attachment at a given index, if it existed, moving later-indexed attachments to earlier indices

Default implementation does nothing

Reimplemented in WaveClipSpectrumCache.

Definition at line 58 of file WaveClip.cpp.

59{
60}

Referenced by WaveClip::DiscardRightChannel(), and WaveClip::SplitChannels().

Here is the caller graph for this function:

◆ HandleXMLAttribute()

bool WaveClipListener::HandleXMLAttribute ( const std::string_view &  attr,
const XMLAttributeValueView valueView 
)
virtual

Reimplemented in WaveColorAttachment.

Definition at line 44 of file WaveClip.cpp.

46{
47 return false;
48}

Referenced by WaveClip::HandleXMLTag().

Here is the caller graph for this function:

◆ Invalidate()

virtual void WaveClipListener::Invalidate ( )
pure virtual

Implemented in WaveClipSpectrumCache, WaveColorAttachment, and anonymous_namespace{WaveformView.cpp}::WaveformPainter.

Referenced by WaveClip::Resample().

Here is the caller graph for this function:

◆ MakeStereo()

void WaveClipListener::MakeStereo ( WaveClipListener &&  other,
bool  aligned 
)
virtual

Append the other's attachments to this, assuming concrete subclasses are the same

Default implementation does nothing

Parameters
alignedwhether the strong invariant condition on the clip may be assumed
Precondition
typeid(*this) == typeid(other)

Reimplemented in WaveClipSpectrumCache.

Definition at line 50 of file WaveClip.cpp.

51{
52}

Referenced by WaveClip::MakeStereo().

Here is the caller graph for this function:

◆ MarkChanged()

virtual void WaveClipListener::MarkChanged ( )
pure virtualnoexcept

Implemented in WaveClipSpectrumCache, WaveColorAttachment, and anonymous_namespace{WaveformView.cpp}::WaveformPainter.

Referenced by WaveClip::MarkChanged().

Here is the caller graph for this function:

◆ SwapChannels()

void WaveClipListener::SwapChannels ( )
virtual

Default implementation does nothing.

Reimplemented in WaveClipSpectrumCache, and anonymous_namespace{WaveformView.cpp}::WaveformPainter.

Definition at line 54 of file WaveClip.cpp.

55{
56}

Referenced by WaveClip::SwapChannels().

Here is the caller graph for this function:

◆ WriteXMLAttributes()

void WaveClipListener::WriteXMLAttributes ( XMLWriter writer) const
virtual

Reimplemented in WaveColorAttachment.

Definition at line 40 of file WaveClip.cpp.

41{
42}

Referenced by WaveClip::WriteXML().

Here is the caller graph for this function:

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