HART  0.2.0
High level Audio Regression and Testing
Loading...
Searching...
No Matches
hart_process_audio.hpp File Reference
#include <algorithm>
#include <cassert>
#include <cmath>
#include <functional>
#include <iomanip>
#include <memory>
#include <sstream>
#include <vector>
#include "hart_audio_buffer.hpp"
#include "dsp/hart_dsp_all.hpp"
#include "dsp/hart_dsp_function.hpp"
#include "hart_expectation_failure_messages.hpp"
#include "matchers/hart_matcher.hpp"
#include "matchers/hart_matcher_function.hpp"
#include "hart_plot.hpp"
#include "hart_precision.hpp"
#include "hart_wavwriter.hpp"
#include "signals/hart_signals_all.hpp"
#include "hart_utils.hpp"
Include dependency graph for hart_process_audio.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AudioTestBuilder< SampleType >
 A DSP host used for building and running tests inside a test case. More...
 

Namespaces

namespace  hart
 
namespace  hart::aliases_float
 
namespace  hart::aliases_double
 

Enumerations

enum class  Save { always , whenFails , never }
 Determines when to save a file. More...
 
enum class  ResetSignal { no , yes }
 Determines whether to reset the Signal in a given context. More...
 

Functions

template<typename DSPType >
AudioTestBuilder< typename std::decay< DSPType >::type::SampleTypePublicAlias > processAudioWith (DSPType &&dsp)
 Call this to start building your test using a DSP object.
 
template<typename DSPType >
AudioTestBuilder< typename DSPType::SampleTypePublicAlias > processAudioWith (std::unique_ptr< DSPType > &&dsp)
 Call this to start building your test using a smart pointer to a DSP object.
 
AudioTestBuilder< float > processAudioWith (std::function< float(float)> dspFunction, const std::string &label={})
 Call this to start building your test using a sample-wise function.
 
AudioTestBuilder< float > processAudioWith (std::function< void(AudioBuffer< float > &)> dspFunction, const std::string &label={})
 Call this to start building your test using a block-wise in-place function.
 
AudioTestBuilder< float > processAudioWith (std::function< void(const AudioBuffer< float > &, AudioBuffer< float > &)> dspFunction, const std::string &label={})
 Call this to start building your test using a block-wise non-replacing function.
 
AudioTestBuilder< double > processAudioWith (std::function< double(double)> dspFunction, const std::string &label={})
 See the description of the float version of this function.
 
AudioTestBuilder< double > processAudioWith (std::function< void(AudioBuffer< double > &)> dspFunction, const std::string &label={})
 See the description of the float version of this function.
 
AudioTestBuilder< double > processAudioWith (std::function< void(const AudioBuffer< double > &, AudioBuffer< double > &)> dspFunction, const std::string &label={})
 See the description of the float version of this function.