Audacity 3.2.0
|
#include <SpectrumCache.h>
Public Member Functions | |
WaveClipSpectrumCache (size_t nChannels) | |
~WaveClipSpectrumCache () override | |
std::unique_ptr< WaveClipListener > | Clone () const override |
void | MarkChanged () noexcept override |
void | Invalidate () override |
bool | GetSpectrogram (const WaveChannelInterval &clip, const float *&spectrogram, SpectrogramSettings &spectrogramSettings, const sampleCount *&where, size_t numPixels, double t0, double pixelsPerSecond) |
void | MakeStereo (WaveClipListener &&other, bool aligned) override |
void | SwapChannels () override |
Default implementation does nothing. More... | |
void | Erase (size_t index) override |
Public Member Functions inherited from WaveClipListener | |
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) |
Static Public Member Functions | |
static WaveClipSpectrumCache & | Get (const WaveChannelInterval &clip) |
Public Attributes | |
std::vector< std::unique_ptr< SpecPxCache > > | mSpecPxCaches |
std::vector< std::unique_ptr< SpecCache > > | mSpecCaches |
int | mDirty { 0 } |
Definition at line 105 of file SpectrumCache.h.
|
explicit |
Definition at line 575 of file SpectrumCache.cpp.
References mSpecCaches.
|
override |
Definition at line 583 of file SpectrumCache.cpp.
|
override |
Definition at line 587 of file SpectrumCache.cpp.
References mSpecCaches.
|
overridevirtual |
Erase attachment at a given index, if it existed, moving later-indexed attachments to earlier indices
Default implementation does nothing
Reimplemented from WaveClipListener.
Definition at line 632 of file SpectrumCache.cpp.
References mSpecCaches, and mSpecPxCaches.
|
static |
Definition at line 598 of file SpectrumCache.cpp.
References WaveClipChannel::GetClip(), and sKeyS.
Referenced by anonymous_namespace{SpectrumView.cpp}::DrawClipSpectrum().
bool WaveClipSpectrumCache::GetSpectrogram | ( | const WaveChannelInterval & | clip, |
const float *& | spectrogram, | ||
SpectrogramSettings & | spectrogramSettings, | ||
const sampleCount *& | where, | ||
size_t | numPixels, | ||
double | t0, | ||
double | pixelsPerSecond | ||
) |
Getting high-level data for screen display
Definition at line 461 of file SpectrumCache.cpp.
References SpectrogramSettings::algReassignment, WaveClipUIUtilities::fillWhere(), WaveClipUIUtilities::findCorrection(), WaveClipChannel::GetChannelIndex(), WaveClipChannel::GetRate(), WaveClipChannel::GetStretchRatio(), WaveClipChannel::GetTrimLeft(), WaveClipChannel::GetTrimRight(), mDirty, min(), mSpecCaches, anonymous_namespace{ClipSegmentTest.cpp}::sampleRate, and settings().
Referenced by anonymous_namespace{SpectrumView.cpp}::DrawClipSpectrum().
|
overridevirtual |
Implements WaveClipListener.
Definition at line 609 of file SpectrumCache.cpp.
References mSpecCaches.
|
overridevirtual |
Append the other's attachments to this, assuming concrete subclasses are the same
Default implementation does nothing
aligned | whether the strong invariant condition on the clip may be assumed |
typeid(*this) == typeid(other)
Reimplemented from WaveClipListener.
Definition at line 616 of file SpectrumCache.cpp.
References mSpecCaches, and mSpecPxCaches.
|
overridevirtualnoexcept |
|
overridevirtual |
Default implementation does nothing.
Reimplemented from WaveClipListener.
Definition at line 624 of file SpectrumCache.cpp.
References mSpecCaches, mSpecPxCaches, and anonymous_namespace{NoteTrack.cpp}::swap().
int WaveClipSpectrumCache::mDirty { 0 } |
Definition at line 115 of file SpectrumCache.h.
Referenced by GetSpectrogram(), and MarkChanged().
std::vector<std::unique_ptr<SpecCache> > WaveClipSpectrumCache::mSpecCaches |
Definition at line 114 of file SpectrumCache.h.
Referenced by Clone(), Erase(), GetSpectrogram(), Invalidate(), MakeStereo(), SwapChannels(), and WaveClipSpectrumCache().
std::vector<std::unique_ptr<SpecPxCache> > WaveClipSpectrumCache::mSpecPxCaches |
Definition at line 113 of file SpectrumCache.h.
Referenced by Erase(), MakeStereo(), and SwapChannels().