From ed0564c01639bae5c33fa2e12a0b3d3545f1e816 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sun, 1 May 2016 23:52:16 +0200 Subject: [PATCH] Buildfix symbian, qt --- Core/Util/TimeStretcher.cpp | 1 + Core/Util/TimeStretcher.h | 2 +- Qt/Core.pro | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Core/Util/TimeStretcher.cpp b/Core/Util/TimeStretcher.cpp index 8e3556346596..d33a025df8a4 100644 --- a/Core/Util/TimeStretcher.cpp +++ b/Core/Util/TimeStretcher.cpp @@ -88,6 +88,7 @@ namespace AudioCore { TimeStretcher::~TimeStretcher() { impl->soundtouch.clear(); + delete impl; } void TimeStretcher::SetOutputSampleRate(unsigned int sample_rate) { diff --git a/Core/Util/TimeStretcher.h b/Core/Util/TimeStretcher.h index b075063d6609..e72ca83edcb6 100644 --- a/Core/Util/TimeStretcher.h +++ b/Core/Util/TimeStretcher.h @@ -52,7 +52,7 @@ namespace AudioCore { private: struct Impl; - std::unique_ptr impl; + Impl *impl; /// INTERNAL: Clamp ratio within limits. static double ClampRatio(double ratio); diff --git a/Qt/Core.pro b/Qt/Core.pro index 13827a029d01..97eb9e665dfe 100644 --- a/Qt/Core.pro +++ b/Qt/Core.pro @@ -44,6 +44,7 @@ SOURCES += $$P/Core/*.cpp \ # Core $$P/Core/Util/GameManager.cpp \ $$P/Core/Util/ppge_atlas.cpp \ $$P/Core/Util/PPGeDraw.cpp \ + $$P/Core/Util/TimeStretcher.cpp \ $$P/ext/libkirk/*.c \ # Kirk $$P/ext/sfmt19937/*.c @@ -62,6 +63,7 @@ HEADERS += $$P/Core/*.h \ $$P/Core/Util/GameManager.h \ $$P/Core/Util/ppge_atlas.h \ $$P/Core/Util/PPGeDraw.h \ + $$P/Core/Util/TimeStretcher.h \ $$P/ext/libkirk/*.h \ $$P/ext/sfmt19937/*.h