|
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. | |
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 22 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 28 of file hart_analysis_context.hpp.
|
inline |
Returns a buffer with input audio.
Definition at line 39 of file hart_analysis_context.hpp.
|
inline |
Returns a buffer with output audio.
Definition at line 45 of file hart_analysis_context.hpp.
|
inline |
Returns a spectrum of the input audio.
Definition at line 51 of file hart_analysis_context.hpp.
|
inline |
Returns a spectrum of the output audio.
Definition at line 60 of file hart_analysis_context.hpp.