Audacity 3.2.0
|
#include <DynamicRangeProcessorHistory.h>
Classes | |
struct | Packet |
Public Types | |
using | Segment = std::vector< Packet > |
Public Member Functions | |
DynamicRangeProcessorHistory (double sampleRate) | |
void | Push (const std::vector< DynamicRangeProcessorOutputPacket > &packets) |
void | BeginNewSegment () |
const std::vector< Segment > & | GetSegments () const |
bool | IsEmpty () const |
Static Public Attributes | |
static constexpr auto | maxTimeSeconds = 2.5f |
Private Member Functions | |
float | GetPacketTime (const DynamicRangeProcessorOutputPacket &packet) const |
Private Attributes | |
const double | mSampleRate |
bool | mBeginNewSegment = true |
std::vector< Segment > | mSegments |
std::optional< long long > | mFirstPacketFirstSampleIndex |
std::optional< long long > | mExpectedNextPacketFirstSampleIndex |
Audacity: A Digital Audio Editor
DynamicRangeProcessorHistory.h
Matthieu Hodgkinson
Definition at line 18 of file DynamicRangeProcessorHistory.h.
using DynamicRangeProcessorHistory::Segment = std::vector<Packet> |
Definition at line 34 of file DynamicRangeProcessorHistory.h.
DynamicRangeProcessorHistory::DynamicRangeProcessorHistory | ( | double | sampleRate | ) |
Audacity: A Digital Audio Editor
DynamicRangeProcessorHistory.cpp
Matthieu Hodgkinson
Definition at line 17 of file DynamicRangeProcessorHistory.cpp.
void DynamicRangeProcessorHistory::BeginNewSegment | ( | ) |
Definition at line 86 of file DynamicRangeProcessorHistory.cpp.
References mBeginNewSegment.
|
private |
Definition at line 104 of file DynamicRangeProcessorHistory.cpp.
References DynamicRangeProcessorOutputPacket::indexOfFirstSample, mFirstPacketFirstSampleIndex, and mSampleRate.
const std::vector< DynamicRangeProcessorHistory::Segment > & DynamicRangeProcessorHistory::GetSegments | ( | ) | const |
Definition at line 92 of file DynamicRangeProcessorHistory.cpp.
References mSegments.
Referenced by TEST_CASE().
bool DynamicRangeProcessorHistory::IsEmpty | ( | ) | const |
Definition at line 97 of file DynamicRangeProcessorHistory.cpp.
References mSegments.
void DynamicRangeProcessorHistory::Push | ( | const std::vector< DynamicRangeProcessorOutputPacket > & | packets | ) |
Definition at line 22 of file DynamicRangeProcessorHistory.cpp.
References mBeginNewSegment, mExpectedNextPacketFirstSampleIndex, mFirstPacketFirstSampleIndex, and mSegments.
|
staticconstexpr |
Definition at line 32 of file DynamicRangeProcessorHistory.h.
Referenced by anonymous_namespace{DynamicRangeProcessorHistoryPanel.cpp}::GetDisplayPixel(), and DynamicRangeProcessorHistoryPanel::InitializeForPlayback().
|
private |
Definition at line 45 of file DynamicRangeProcessorHistory.h.
Referenced by BeginNewSegment(), and Push().
|
private |
Definition at line 48 of file DynamicRangeProcessorHistory.h.
Referenced by Push().
|
private |
Definition at line 47 of file DynamicRangeProcessorHistory.h.
Referenced by GetPacketTime(), and Push().
|
private |
Definition at line 44 of file DynamicRangeProcessorHistory.h.
Referenced by GetPacketTime().
|
private |
Definition at line 46 of file DynamicRangeProcessorHistory.h.
Referenced by GetSegments(), IsEmpty(), and Push().