Correcting windows builds

This commit is contained in:
Paul Ferrand 2020-01-28 21:42:15 +01:00
parent 603b3049bf
commit ef477dca90
3 changed files with 5 additions and 1 deletions

View file

@ -11,6 +11,7 @@
#define _SILENCE_CXX17_OLD_ALLOCATOR_MEMBERS_DEPRECATION_WARNING
#endif
#include <cstddef>
#include <cstdint>
namespace sfz {
enum class Oversampling: int {
@ -47,7 +48,7 @@ namespace config {
constexpr float A440 { 440.0 };
constexpr size_t powerHistoryLength { 16 };
constexpr float voiceStealingThreshold { 0.00001f };
constexpr int numCCs { 143 };
constexpr uint8_t numCCs { 143 };
constexpr int chunkSize { 1024 };
constexpr float defaultAmpEGRelease { 0.02f };
} // namespace config

View file

@ -486,6 +486,7 @@ TEST_CASE("[Files] Looped regions taken from files and possibly overriden")
TEST_CASE("[Files] Case sentitiveness")
{
#ifndef WIN32
sfz::Synth synth;
synth.loadSfzFile(fs::current_path() / "tests/TestFiles/case_insensitive.sfz");
REQUIRE(synth.getNumRegions() == 4);
@ -493,4 +494,5 @@ TEST_CASE("[Files] Case sentitiveness")
REQUIRE(synth.getRegionView(1)->sample == "Regions/dummy.wav");
REQUIRE(synth.getRegionView(2)->sample == "Regions/dummy.wav");
REQUIRE(synth.getRegionView(3)->sample == "Regions/dummy.wav");
#endif
}

View file

@ -10,6 +10,7 @@
// #include "ghc/fs_std.hpp"
#include <absl/types/span.h>
#include <algorithm>
#include <array>
#include <string>
#include <iostream>
using namespace Catch::literals;