Skip to content

Commit ff5e58d

Browse files
committed
Debug DAC timing
1 parent 0136078 commit ff5e58d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/soundio/sounddeviceportaudio.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,6 +1111,10 @@ void SoundDevicePortAudio::updateCallbackEntryToDacTime(
11111111
double diff = (timeSinceLastCbSecs + callbackEntrytoDacSecs) -
11121112
(m_lastCallbackEntrytoDacSecs + bufferSizeSec);
11131113

1114+
qDebug() << "DAC" << timeInfo->outputBufferDacTime
1115+
<< "callbackEntrytoDacSecs" << callbackEntrytoDacSecs << "diff"
1116+
<< diff << "this" << timeSinceLastCbSecs;
1117+
11141118
if (callbackEntrytoDacSecs <= 0 ||
11151119
(timeSinceLastCbSecs < bufferSizeSec * 2 &&
11161120
fabs(diff) / bufferSizeSec > 0.1)) {

0 commit comments

Comments
 (0)