20 #include <pluginterfaces/vst/ivstaudioprocessor.h> 27 using namespace Steinberg;
28 using namespace Steinberg::Vst;
30 #define BIT_SET(a,b) ((a) |= (static_cast<uint64>(1)<<(b))) 31 #define BIT_CLEAR(a,b) ((a) &= ~(static_cast<uint64>(1)<<(b))) 32 #define BIT_TEST(a,b) (((a) & (static_cast<uint64>(1)<<(b))) != 0) 39 template<
typename SampleType>
69 template<
typename SampleType>
72 return static_cast<SampleType>(std::pow(10.0, valueInDb / 20.0));
78 template<
typename SampleType>
81 return std::log10(valueInSample) * 20.0;
Sample64 getSampleSilentThreshold< Sample64 >() noexcept
Definition: AudioUtils.h:44
SampleType dbToSample(double valueInDb)
Definition: AudioUtils.h:70
constexpr Sample64 Sample64SilentThreshold
Definition: AudioUtils.h:36
SampleType getSampleSilentThreshold() noexcept
bool isSilent(Sample32 value)
Definition: AudioUtils.h:49
constexpr Sample32 Sample32SilentThreshold
Definition: AudioUtils.h:35
double sampleToDb(SampleType valueInSample)
Definition: AudioUtils.h:79