Skip to content

Commit

Permalink
AUDCLNT_BUFFERFLAGS_DATA_DISCONTINUITY in perf def
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasArvidsson committed Mar 7, 2019
1 parent 986fa4e commit 5ff9bc1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions CaptureLoop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#ifdef PERFORMANCE_LOG
#include "Stopwatch.h"
Stopwatch sw("Render", 1000);
Stopwatch sw("Render", 10000);
#define swStart() sw.intervalStart()
#define swEnd() sw.intervalEnd()
#else
Expand Down Expand Up @@ -145,9 +145,11 @@ void CaptureLoop::_captureLoop() {
}
}

//if (flags & AUDCLNT_BUFFERFLAGS_DATA_DISCONTINUITY) {
// LOG_WARN("%s: AUDCLNT_BUFFERFLAGS_DATA_DISCONTINUITY: %d\n", Date::getLocalDateTimeString().c_str(), samplesAvailable);
//}
#ifdef PERFORMANCE_LOG
if (flags & AUDCLNT_BUFFERFLAGS_DATA_DISCONTINUITY) {
LOG_WARN("%s: AUDCLNT_BUFFERFLAGS_DATA_DISCONTINUITY: %d\n", Date::getLocalDateTimeString().c_str(), samplesAvailable);
}
#endif

//Must read entire capture buffer at once. Wait until render buffer has enough space available.
while (samplesAvailable > _pRenderDevice->getBufferFrameCountAvailable()) {
Expand Down

0 comments on commit 5ff9bc1

Please sign in to comment.