|
HART
0.2.0
High level Audio Regression and Testing
|
Contains audio-related artefacts useful for analysis by matchers. More...
#include <hart_analysis_context.hpp>
Public Member Functions | |
| AnalysisContext (const AudioBuffer< SampleType > &inputAudio, const AudioBuffer< SampleType > &outputAudio) | |
| Creates an instance of analysis context. | |
| const AudioBuffer< SampleType > & | inputAudio () const |
| Returns a buffer with input audio. | |
| const AudioBuffer< SampleType > & | outputAudio () const |
| Returns a buffer with output audio. | |
| const Spectrum & | inputSpectrum () const |
| Returns a spectrum of the input audio. | |
| const Spectrum & | outputSpectrum () const |
| Returns a spectrum of the output audio. | |
| const ImpulseResponse< SampleType > & | impulseResponse () const |
| Returns an impulse response of the output audio vs input audio. | |
Contains audio-related artefacts useful for analysis by matchers.
Designed to be used to retreive various audio-related artefacts for audio analysis, such as input and output audio buffers, spectra, and possibly some others.
All derivative artefacts, such as Spectra, are calculated on demand and then cached. Everything is read only.
Designed as a lightweight object, so it's totally okay to copy it.
| Type | of samples of the audio buffers, typicalle float or double |
Definition at line 23 of file hart_analysis_context.hpp.
|
inline |
Creates an instance of analysis context.
You probably have no reason to instantiate this class yourself, it's meand to be created by the AudioTestBuilder only.
Definition at line 29 of file hart_analysis_context.hpp.
|
inline |
Returns a buffer with input audio.
Definition at line 40 of file hart_analysis_context.hpp.
|
inline |
Returns a buffer with output audio.
Definition at line 46 of file hart_analysis_context.hpp.
|
inline |
Returns a spectrum of the input audio.
Definition at line 52 of file hart_analysis_context.hpp.
|
inline |
Returns a spectrum of the output audio.
Definition at line 61 of file hart_analysis_context.hpp.
|
inline |
Returns an impulse response of the output audio vs input audio.
Definition at line 70 of file hart_analysis_context.hpp.