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