From 0e0f28687e87c5359348e694cd0ec47e060f9dbf Mon Sep 17 00:00:00 2001 From: xenakios Date: Mon, 15 Oct 2018 18:43:33 +0300 Subject: [PATCH] remove unused variables, nodiscard for openaudiofile method --- Source/PS_Source/Input/InputS.h | 2 +- Source/PS_Source/StretchSource.cpp | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Source/PS_Source/Input/InputS.h b/Source/PS_Source/Input/InputS.h index 6cf47d5..95dd01e 100644 --- a/Source/PS_Source/Input/InputS.h +++ b/Source/PS_Source/Input/InputS.h @@ -35,7 +35,7 @@ public: { }; - virtual bool openAudioFile(File file)=0; + [[nodiscard]] virtual bool openAudioFile(File file)=0; virtual void close()=0; virtual int readNextBlock(AudioBuffer& abuf, int smps, int numchans)=0; diff --git a/Source/PS_Source/StretchSource.cpp b/Source/PS_Source/StretchSource.cpp index ea87a9b..45125e0 100644 --- a/Source/PS_Source/StretchSource.cpp +++ b/Source/PS_Source/StretchSource.cpp @@ -301,8 +301,6 @@ void StretchAudioSource::getNextAudioBlock(const AudioSourceChannelInfo & buffer m_inputfile->setXFadeLenSeconds(m_loopxfadelen); double silencethreshold = Decibels::decibelsToGain(-70.0); - bool tempfirst = true; - auto foofilepos0 = m_inputfile->getCurrentPosition(); auto ringbuffilltask = [this](int framestoproduce) { while (m_stretchoutringbuf.available() < framestoproduce*m_num_outchans) @@ -549,7 +547,6 @@ void StretchAudioSource::initObjects() m_stretchers[i]->m_spectrum_processes = m_specproc_order; } m_file_inbuf.setSize(m_num_outchans, 3 * inbufsize); - int poolsize = m_stretchers[0]->get_max_bufsize(); } void StretchAudioSource::playDrySound(const AudioSourceChannelInfo & bufferToFill)