mirror of https://github.com/probonopd/MiniDexed
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
757 B
38 lines
757 B
#pragma once
|
|
|
|
#include <random>
|
|
#include <string>
|
|
#include <gtest/gtest.h>
|
|
|
|
#include "../fx.h"
|
|
#include "../mixing_console_constants.h"
|
|
|
|
#define AUDIO_SOURCE_FILE "test.wav"
|
|
|
|
#define SAMPLING_FREQUENCY 44100.0f
|
|
|
|
#define stringify( x ) # x
|
|
|
|
#define Active(scenarioKey, FxID) ((scenarioKey & (1 << FxID)) == (1 << FxID))
|
|
|
|
std::string getScenarioName(int scenario);
|
|
|
|
enum FXSwitch
|
|
{
|
|
FX__Tube = 0,
|
|
FX__Chorus,
|
|
FX__Flanger,
|
|
FX__Orbitone,
|
|
FX__Phaser,
|
|
FX__Delay,
|
|
FX__ShimmerReverb,
|
|
FX__PlateReverb
|
|
};
|
|
|
|
void setupOuputStreamFocCSV(std::ostream& out);
|
|
|
|
std::string getResultFile(const string& filename);
|
|
|
|
float32_t getRandomValue();
|
|
|
|
class FXScenarioTest : public testing::TestWithParam<int> {};
|
|
|