Skip to content

Commit

Permalink
fix AudioTimeStretcher in release build
Browse files Browse the repository at this point in the history
  • Loading branch information
lshman authored and tedfelix committed Apr 3, 2024
1 parent cb14642 commit 79d672b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/sound/AudioTimeStretcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,10 +385,8 @@ AudioTimeStretcher::putInput(float **input, size_t samples)

for (size_t c = 0; c < m_channels; ++c) {

#ifndef NDEBUG
size_t got = m_inbuf[c]->peek(m_tempbuf, m_wlen);
Q_ASSERT(got == m_wlen);
#endif

analyseBlock(c, m_tempbuf);
}
Expand Down Expand Up @@ -538,7 +536,7 @@ AudioTimeStretcher::analyseBlock(size_t channel, float *in)
// "in" buffer contains m_wlen samples

#ifdef DEBUG_AUDIO_TIME_STRETCHER
std::cerr << "AudioTimeStretcher::analyseBlock (channel " << c << ")" << std::endl;
std::cerr << "AudioTimeStretcher::analyseBlock (channel " << channel << ")" << std::endl;
#endif

m_analysisWindow->cut(in);
Expand Down

0 comments on commit 79d672b

Please sign in to comment.