Ardour  9.0-pre0-582-g084a23a80d
TestUtils Struct Reference

#include <utils.h>

Static Public Member Functions

template<typename T >
static bool array_equals (T const *a, T const *b, samplecnt_t samples)
 
template<typename T >
static bool array_filled (T const *array, samplecnt_t samples)
 
static float * init_random_data (samplecnt_t samples, float range=1.0)
 Generate random data, all samples guaranteed not to be 0.0, 1.0 or -1.0. More...
 

Detailed Description

Definition at line 23 of file libs/audiographer/tests/utils.h.

Member Function Documentation

◆ array_equals()

template<typename T >
static bool TestUtils::array_equals ( T const *  a,
T const *  b,
samplecnt_t  samples 
)
inlinestatic

Definition at line 26 of file libs/audiographer/tests/utils.h.

◆ array_filled()

template<typename T >
static bool TestUtils::array_filled ( T const *  array,
samplecnt_t  samples 
)
inlinestatic

Definition at line 37 of file libs/audiographer/tests/utils.h.

◆ init_random_data()

static float* TestUtils::init_random_data ( samplecnt_t  samples,
float  range = 1.0 
)
inlinestatic

Generate random data, all samples guaranteed not to be 0.0, 1.0 or -1.0.

Definition at line 48 of file libs/audiographer/tests/utils.h.


The documentation for this struct was generated from the following file: