From 78350045a2cc21898415f15a6a34106503e85083 Mon Sep 17 00:00:00 2001 From: "Raine M. Ekman" Date: Wed, 7 Jan 2015 08:14:48 +0200 Subject: [PATCH] Fix things that won't build if -DLMMS_DEBUG is in CXX_FLAGS. --- src/core/EffectChain.cpp | 2 +- src/core/SampleRecordHandle.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/EffectChain.cpp b/src/core/EffectChain.cpp index f7a15bcf7..5890566a3 100644 --- a/src/core/EffectChain.cpp +++ b/src/core/EffectChain.cpp @@ -221,7 +221,7 @@ bool EffectChain::processAudioBuffer( sampleFrame * _buf, const fpp_t _frames, b it = m_effects.end()-1; printf( "numerical overflow after processing " "plugin \"%s\"\n", ( *it )-> - publicName().toUtf8().constData() ); + descriptor()->name); break; } } diff --git a/src/core/SampleRecordHandle.cpp b/src/core/SampleRecordHandle.cpp index dc850cb70..233e12561 100644 --- a/src/core/SampleRecordHandle.cpp +++ b/src/core/SampleRecordHandle.cpp @@ -30,7 +30,9 @@ #include "Pattern.h" #include "SampleBuffer.h" #include "SampleTrack.h" - +#ifdef LMMS_DEBUG +#include +#endif SampleRecordHandle::SampleRecordHandle( SampleTCO* tco ) :