Class ebu_channel¶
class ebu_channel<T> dsp¶
template <typename T>
struct ebu_channel { … } Single-channel loudness measurement front-end.
Per-channel output gain accounts for the EBU channel weighting (e.g. +1.5 dB for surrounds, 0 dB for LFE).
constructor ebu_channel<T>(int, speaker_type, int, T) ¶
ebu_channel(int sample_rate, speaker_type speaker, int packet_size_factor = 1, T input_gain = 1) Construct a channel front-end.
| sample_rate | Sample rate in Hz. |
| speaker | Speaker role (determines output weighting). |
| packet_size_factor | 1 = 10 Hz refresh, 2 = 20 Hz, 3 = 30 Hz. |
| input_gain | Linear gain applied to the input before filtering. |
Fully qualified name: kfr::ebu_channel<T>::ebu_channel<T>(int, speaker_type, int, T)
Declared at dsp/ebu.hpp:282
function reset() ¶
void reset() Zero the momentary and short-term sum-of-squares ring buffers.
Fully qualified name: kfr::ebu_channel<T>::reset()
Declared at dsp/ebu.hpp:306
function process_packet(const T *) ¶
void process_packet(const T* src) Process one packet of packet_size() samples.
Filters the input through the K-filter and adds the resulting sum-of-squares to both ring buffers (overwriting the oldest slot).
| src | Pointer to packet_size() input samples. |
Fully qualified name: kfr::ebu_channel<T>::process_packet(const T *)
Declared at dsp/ebu.hpp:319
function get_speaker() ¶
speaker_type get_speaker() const Return the speaker role assigned to this channel.
Fully qualified name: kfr::ebu_channel<T>::get_speaker()
Declared at dsp/ebu.hpp:328
function packet_size() ¶
size_t packet_size() const Return the number of samples per packet.
Fully qualified name: kfr::ebu_channel<T>::packet_size()
Declared at dsp/ebu.hpp:330
Fully qualified name: kfr::ebu_channel<T>
Declared at dsp/ebu.hpp:271