Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::audio::ImpulseResponseLoadOptions Struct Reference

#include <impulse_response.hpp>

Public Attributes

double max_seconds = 0.0
 Truncate the IR to at most this many seconds (measured at both the source and the target rate so a huge file can't OOM the decode or the FFT).
bool normalize_unit_energy = true
 Scale so the IR has unit energy (‖ir‖₂ = 1), keeping a dry/wet mix sane regardless of the file's recorded level.
double reject_longer_than_seconds = 300.0
 Refuse a file whose duration exceeds this many seconds before decoding (fat-finger guard).

Member Data Documentation

◆ max_seconds

double pulp::audio::ImpulseResponseLoadOptions::max_seconds = 0.0

Truncate the IR to at most this many seconds (measured at both the source and the target rate so a huge file can't OOM the decode or the FFT).

0 disables the cap.

◆ normalize_unit_energy

bool pulp::audio::ImpulseResponseLoadOptions::normalize_unit_energy = true

Scale so the IR has unit energy (‖ir‖₂ = 1), keeping a dry/wet mix sane regardless of the file's recorded level.

◆ reject_longer_than_seconds

double pulp::audio::ImpulseResponseLoadOptions::reject_longer_than_seconds = 300.0

Refuse a file whose duration exceeds this many seconds before decoding (fat-finger guard).

0 disables the preflight.


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