Audacity 3.2.0
Classes | Typedefs | Functions | Variables
DynamicRangeProcessorTypes.h File Reference
#include "LockFreeQueue.h"
#include <array>
#include <limits>
#include <memory>
#include <vector>
Include dependency graph for DynamicRangeProcessorTypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DynamicRangeProcessorOutputPacket
 
struct  MeterValues
 
struct  InitializeProcessingSettings
 
struct  Unbypassed
 
struct  CompressorSettings
 
struct  LimiterSettings
 
struct  DynamicRangeProcessorSettings
 

Typedefs

using DynamicRangeProcessorOutputPacketQueue = LockFreeQueue< DynamicRangeProcessorOutputPacket >
 
using DynamicRangeProcessorMeterValuesQueue = LockFreeQueue< MeterValues >
 

Functions

constexpr bool operator== (const DynamicRangeProcessorSettings &lhs, const DynamicRangeProcessorSettings &rhs)
 
constexpr bool operator!= (const DynamicRangeProcessorSettings &lhs, const DynamicRangeProcessorSettings &rhs)
 

Variables

static constexpr auto compressorMeterUpdatePeriodMs = 1000 / 30
 
constexpr double compressorThresholdDbDefault = -10
 
constexpr double compressorMakeupGainDbDefault = 0
 
constexpr double compressorKneeWidthDbDefault = 5
 
constexpr double compressorCompressionRatioDefault = 10
 
constexpr double compressorLookaheadMsDefault = 1
 
constexpr double compressorAttackMsDefault = 30
 
constexpr double compressorReleaseMsDefault = 150
 
constexpr double compressorMaxLookaheadMs = 1000.
 
constexpr double limiterThresholdDbDefault = -5
 
constexpr double limiterMakeupTargetDbDefault = -1
 
constexpr double limiterKneeWidthDbDefault = 2
 
constexpr double limiterLookaheadMsDefault = 1
 
constexpr double limiterReleaseMsDefault = 20
 
constexpr double limiterMaxLookaheadMs = 50
 
constexpr double showInputDefault = 0
 
constexpr double showOutputDefault = 1
 
constexpr double showActualDefault = 1
 
constexpr double showTargetDefault = 0
 

Typedef Documentation

◆ DynamicRangeProcessorMeterValuesQueue

Definition at line 38 of file DynamicRangeProcessorTypes.h.

◆ DynamicRangeProcessorOutputPacketQueue

Definition at line 29 of file DynamicRangeProcessorTypes.h.

Function Documentation

◆ operator!=()

constexpr bool operator!= ( const DynamicRangeProcessorSettings lhs,
const DynamicRangeProcessorSettings rhs 
)
constexpr

Definition at line 164 of file DynamicRangeProcessorTypes.h.

167{
168 return !(lhs == rhs);
169}

◆ operator==()

constexpr bool operator== ( const DynamicRangeProcessorSettings lhs,
const DynamicRangeProcessorSettings rhs 
)
constexpr

Definition at line 150 of file DynamicRangeProcessorTypes.h.

153{
156 lhs.kneeWidthDb == rhs.kneeWidthDb &&
158 lhs.lookaheadMs == rhs.lookaheadMs && lhs.attackMs == rhs.attackMs &&
159 lhs.releaseMs == rhs.releaseMs && lhs.showInput == rhs.showInput &&
160 lhs.showOutput == rhs.showOutput &&
161 lhs.showActual == rhs.showActual && lhs.showTarget == rhs.showTarget;
162}

References DynamicRangeProcessorSettings::attackMs, DynamicRangeProcessorSettings::compressionRatio, DynamicRangeProcessorSettings::inCompressionThreshDb, DynamicRangeProcessorSettings::kneeWidthDb, DynamicRangeProcessorSettings::lookaheadMs, DynamicRangeProcessorSettings::outCompressionThreshDb, DynamicRangeProcessorSettings::releaseMs, DynamicRangeProcessorSettings::showActual, DynamicRangeProcessorSettings::showInput, DynamicRangeProcessorSettings::showOutput, and DynamicRangeProcessorSettings::showTarget.

Variable Documentation

◆ compressorAttackMsDefault

constexpr double compressorAttackMsDefault = 30
constexpr

Definition at line 60 of file DynamicRangeProcessorTypes.h.

◆ compressorCompressionRatioDefault

constexpr double compressorCompressionRatioDefault = 10
constexpr

Definition at line 58 of file DynamicRangeProcessorTypes.h.

◆ compressorKneeWidthDbDefault

constexpr double compressorKneeWidthDbDefault = 5
constexpr

Definition at line 57 of file DynamicRangeProcessorTypes.h.

◆ compressorLookaheadMsDefault

constexpr double compressorLookaheadMsDefault = 1
constexpr

Definition at line 59 of file DynamicRangeProcessorTypes.h.

◆ compressorMakeupGainDbDefault

constexpr double compressorMakeupGainDbDefault = 0
constexpr

Definition at line 56 of file DynamicRangeProcessorTypes.h.

◆ compressorMaxLookaheadMs

constexpr double compressorMaxLookaheadMs = 1000.
constexpr

Definition at line 62 of file DynamicRangeProcessorTypes.h.

Referenced by CompressorProcessor::Reinit().

◆ compressorMeterUpdatePeriodMs

constexpr auto compressorMeterUpdatePeriodMs = 1000 / 30
staticconstexpr

Definition at line 53 of file DynamicRangeProcessorTypes.h.

Referenced by CompressionMeterPanel::Reset().

◆ compressorReleaseMsDefault

constexpr double compressorReleaseMsDefault = 150
constexpr

Definition at line 61 of file DynamicRangeProcessorTypes.h.

◆ compressorThresholdDbDefault

constexpr double compressorThresholdDbDefault = -10
constexpr

Definition at line 55 of file DynamicRangeProcessorTypes.h.

◆ limiterKneeWidthDbDefault

constexpr double limiterKneeWidthDbDefault = 2
constexpr

Definition at line 66 of file DynamicRangeProcessorTypes.h.

◆ limiterLookaheadMsDefault

constexpr double limiterLookaheadMsDefault = 1
constexpr

Definition at line 67 of file DynamicRangeProcessorTypes.h.

◆ limiterMakeupTargetDbDefault

constexpr double limiterMakeupTargetDbDefault = -1
constexpr

Definition at line 65 of file DynamicRangeProcessorTypes.h.

◆ limiterMaxLookaheadMs

constexpr double limiterMaxLookaheadMs = 50
constexpr

Definition at line 69 of file DynamicRangeProcessorTypes.h.

Referenced by CompressorProcessor::Reinit().

◆ limiterReleaseMsDefault

constexpr double limiterReleaseMsDefault = 20
constexpr

Definition at line 68 of file DynamicRangeProcessorTypes.h.

◆ limiterThresholdDbDefault

constexpr double limiterThresholdDbDefault = -5
constexpr

Definition at line 64 of file DynamicRangeProcessorTypes.h.

◆ showActualDefault

constexpr double showActualDefault = 1
constexpr

Definition at line 73 of file DynamicRangeProcessorTypes.h.

◆ showInputDefault

constexpr double showInputDefault = 0
constexpr

Definition at line 71 of file DynamicRangeProcessorTypes.h.

◆ showOutputDefault

constexpr double showOutputDefault = 1
constexpr

Definition at line 72 of file DynamicRangeProcessorTypes.h.

◆ showTargetDefault

constexpr double showTargetDefault = 0
constexpr

Definition at line 74 of file DynamicRangeProcessorTypes.h.