|
DSPark 1.8.0
Header-only C++20 DSP for real-time and offline audio
|
OFFLINE ONLY: calibrates a soft curve to reduce the complete source peak. More...
#include <OfflineSoftClipper.h>


Additional Inherited Members | |
Public Types inherited from dspark::detail::OfflineClipProcessor< T, true > | |
| enum | Reason |
| using | Curve = OfflineSoftClipCurve |
| using | Options = std::conditional_t< Soft, OfflineSoftClipOptions, OfflineClipOptions > |
Public Member Functions inherited from dspark::detail::OfflineClipProcessor< T, true > | |
| PlanResult | makePlan (OfflineAudioSource< T > &source, const typename OfflineEnergyAnalyzer< T >::Analysis &analysis, const Options &options={}, const OfflineJobOptions &jobOptions={}) const |
| Reuses complete-source energy analysis; no PCM or filtered audio is retained. | |
| PlanResult | analyze (OfflineAudioSource< T > &source, const Options &options={}, const OfflineJobOptions &job={}) const |
| Analyzes the complete source and makes a reusable worker plan. | |
| Result | render (OfflineAudioSource< T > &source, const Plan &plan, OfflineAudioSink< T > &sink, const OfflineJobOptions &job={}) const |
| Calibrates actual PCM, then verifies a provisional render before committing it. | |
| Result | run (const AudioBuffer< T, MaxChannels > &input, AudioBuffer< T, MaxChannels > &output, double sampleRate, const Options &options={}, const OfflineJobOptions &job={}) const |
| Owning render; aliasing is safe and failure leaves output unchanged. | |
OFFLINE ONLY: calibrates a soft curve to reduce the complete source peak.
Options::reductionDb is positive 0..12 dB; zero preserves exact PCM. Sine is the default curve; tanh and golden-ratio curves reuse Clipper's shared shapes. Options::oversamplingFactor is explicitly selectable (1/2/4/8/16, default 4). The continuous-interval correction uses Core filters and convolution. Its internal delay is fully removed: the result has the source length and clock. Mono/stereo channels share one ceiling. Exclusions preserve exact samples with external 5 ms feathers. If these prevent the target, rendering fails without publishing output. No output gain trim or extra limiter is applied.
Threading: synchronous worker only. Sources stay immutable during every pass. Plans own their exclusions and fingerprint; const access is safe while alive and unmoved. This class has no audio-callback processing API.
Definition at line 29 of file OfflineSoftClipper.h.