sfizz/sources/Globals.h

29 lines
901 B
C
Raw Normal View History

2019-07-29 02:13:03 +02:00
#pragma once
namespace sfz
{
2019-07-30 18:26:35 +02:00
namespace config
2019-07-29 02:13:03 +02:00
{
inline constexpr double defaultSampleRate { 48000 };
inline constexpr int defaultSamplesPerBlock { 1024 };
inline constexpr int preloadSize { 32768 };
inline constexpr int numChannels { 2 };
inline constexpr int numVoices { 64 };
inline constexpr int numLoadingThreads { 4 };
inline constexpr int centPerSemitone { 100 };
inline constexpr float virtuallyZero { 0.00005f };
inline constexpr double fastReleaseDuration { 0.01 };
inline constexpr char defineCharacter { '$' };
inline constexpr int oversamplingFactor { 2 };
} // namespace config
2019-07-30 18:26:35 +02:00
} // namespace sfz
2019-07-30 18:41:29 +02:00
enum class VectorOperations { standard, sse, neon };
2019-07-30 18:26:35 +02:00
namespace config
{
inline constexpr unsigned int defaultAlignment { 16 };
2019-07-30 18:41:29 +02:00
2019-07-30 18:26:35 +02:00
inline constexpr VectorOperations vectorOperation { VectorOperations::standard };
} // namespace config