Browse Source

remove unused variables, nodiscard for openaudiofile method

master
xenakios 6 years ago
parent
commit
0e0f28687e
2 changed files with 1 additions and 4 deletions
  1. +1
    -1
      Source/PS_Source/Input/InputS.h
  2. +0
    -3
      Source/PS_Source/StretchSource.cpp

+ 1
- 1
Source/PS_Source/Input/InputS.h View File

@@ -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<float>& abuf, int smps, int numchans)=0;


+ 0
- 3
Source/PS_Source/StretchSource.cpp View File

@@ -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)


Loading…
Cancel
Save