Skip to content

Commit

Permalink
don't hint reader if new track is loading
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Jun 30, 2013
1 parent baf4816 commit fd0a392
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/engine/enginebuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ void EngineBuffer::process(const CSAMPLE *, const CSAMPLE * pOut, const int iBuf
m_filepos_play--;
}

// Perform scaling of Reader buffer into buffer.
//-> // Perform scaling of Reader buffer into buffer.
CSAMPLE* output = m_pScale->getScaled(iBufferSize);
double samplesRead = m_pScale->getSamplesRead();

Expand Down Expand Up @@ -738,9 +738,11 @@ void EngineBuffer::process(const CSAMPLE *, const CSAMPLE * pOut, const int iBuf
bCurBufferPaused = true;
}

// Give the Reader hints as to which chunks of the current song we
// really care about. It will try very hard to keep these in memory
hintReader(rate);
if (!bTrackLoading) {
// Give the Reader hints as to which chunks of the current song we
// really care about. It will try very hard to keep these in memory
hintReader(rate);
}

const double kSmallRate = 0.005;
if (m_bLastBufferPaused && !bCurBufferPaused) {
Expand Down

0 comments on commit fd0a392

Please sign in to comment.