|
DSPark 1.8.0
Header-only C++20 DSP for real-time and offline audio
|
Streaming GCC-PHAT delay estimator with sub-sample refinement. More...
#include <DelayEstimator.h>
Classes | |
| struct | Result |
| What estimate() returns. More... | |
Public Member Functions | |
| void | prepare (double sampleRate, int maxDelaySamples) |
| Allocates for a search range. | |
| void | reset () noexcept |
| Forgets everything pushed. | |
| void | push (AudioBufferView< const T > reference, AudioBufferView< const T > delivery) noexcept |
| Feeds the next stretch of both signals (same length; channels averaged). Allocation free. | |
| Result | estimate () noexcept |
| The delay over everything pushed so far. Allocation free. | |
| int | getFrameSize () const noexcept |
| Frame length in samples (the analysis resolution in time). | |
Static Public Member Functions | |
| static Result | estimate (AudioBufferView< const T > reference, AudioBufferView< const T > delivery, double sampleRate, int maxDelaySamples) |
| Whole-signal convenience: one estimate over two buffers. Allocates. | |
Streaming GCC-PHAT delay estimator with sub-sample refinement.
| T | Sample type (float or double). |
Definition at line 93 of file DelayEstimator.h.
|
inlinenoexcept |
The delay over everything pushed so far. Allocation free.
Definition at line 178 of file DelayEstimator.h.
|
inlinestatic |
Whole-signal convenience: one estimate over two buffers. Allocates.
Definition at line 232 of file DelayEstimator.h.
|
inlinenoexcept |
Frame length in samples (the analysis resolution in time).
Definition at line 229 of file DelayEstimator.h.
|
inline |
Allocates for a search range.
| sampleRate | Sample rate of both signals. |
| maxDelaySamples | Largest delay searched, either way (>= 1). The frame is the power of two at least eight times this (and at least 4096), and so is the memory. |
Definition at line 113 of file DelayEstimator.h.
|
inlinenoexcept |
Feeds the next stretch of both signals (same length; channels averaged). Allocation free.
Definition at line 154 of file DelayEstimator.h.
|
inlinenoexcept |
Forgets everything pushed.
Definition at line 139 of file DelayEstimator.h.