Skip to content

Commit

Permalink
Removed no longer needed debug output functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
JoergAtGithub committed Aug 18, 2024
1 parent ad1a841 commit ddff131
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
15 changes: 0 additions & 15 deletions src/engine/sync/abletonlink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ AbletonLink::AbletonLink(const QString& group, EngineSync* pEngineSync)
// Start/Stop sync makes not much sense for a DJ set
m_pLink->enableStartStopSync(false);

nonAudioThreadDebugOutput();
audioThreadDebugOutput();

initTestTimer(1000, true);
}

void AbletonLink::slotControlSyncEnabled(double value) {
Expand Down Expand Up @@ -213,15 +210,3 @@ void AbletonLink::audioThreadDebugOutput() {
m_pLink->clock().micros())
.count();
}

// Debug output function, which must not be called in audio thread
void AbletonLink::nonAudioThreadDebugOutput() {
qDebug() << "isStartStopSyncEnabled()" << m_pLink->isStartStopSyncEnabled();
}

void AbletonLink::initTestTimer(int ms, bool isRepeating) {
m_pTestTimer = new QTimer(this);
connect(m_pTestTimer, &QTimer::timeout, this, QOverload<>::of(&AbletonLink::testPrint));
m_pTestTimer->setSingleShot(!isRepeating);
m_pTestTimer->start(ms);
}
13 changes: 0 additions & 13 deletions src/engine/sync/abletonlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,6 @@ class AbletonLink : public QObject, public Syncable {
std::chrono::microseconds absTimeWhenPrevOutputBufferReachesDac);
void onCallbackEnd(int sampleRate, int bufferSize);

private slots:
void testPrint() {
nonAudioThreadDebugOutput();
audioThreadDebugOutput();
}

private:
std::unique_ptr<ableton::Link> m_pLink;
Expand Down Expand Up @@ -136,14 +131,6 @@ class AbletonLink : public QObject, public Syncable {

// Test/Debug code

QTimer* m_pTestTimer;
const double beat = 0.0;

/// Link getters to call from audio thread.
void audioThreadDebugOutput();

/// Link getters to call from non-audio thread.
void nonAudioThreadDebugOutput();

void initTestTimer(int ms, bool isRepeating);
};

0 comments on commit ddff131

Please sign in to comment.