1 #pragma once 2 3 #include "util/types.h" 4 5 // HACK until we have Control 2.0 6 #define MIXXX_XFADER_ADDITIVE 0.0 7 #define MIXXX_XFADER_CONSTPWR 1.0 8 9 class EngineXfader { 10 public: 11 static double getPowerCalibration(double transform); 12 static void getXfadeGains(double xfadePosition, 13 double transform, 14 double powerCalibration, 15 double curve, 16 bool reverse, 17 CSAMPLE_GAIN* gain1, 18 CSAMPLE_GAIN* gain2); 19 20 static const char* kXfaderConfigKey; 21 static const double kTransformDefault; 22 static const double kTransformMax; 23 static const double kTransformMin; 24 }; 25