Something went wrong. Try again.
Mixxx DJ software with MCP, Subsonic/Navidrome streaming library support — browse and load tracks from your self-hosted music server mixxx.org
subsonic navidrome streaming audio dj mac linux midi
Something went wrong. Try again.
C++
12345678910111213141516171819202122232425262728293031323334// Tests for Sync Lock.// There are no tests for actual deck playback, since I don't know how to mock that out yet.// The following manual tests should probably be performed:// * Quantize mode nudges tracks in sync, whether internal or deck leader.// * Flinging tracks with the waveform should work.// * vinyl??
#include <gmock/gmock.h>#include <gtest/gtest.h>
#include <QtDebug>
#include "engine/sync/synccontrol.h"#include "test/mixxxtest.h"#include "test/mockedenginebackendtest.h"
class SyncControlTest : public MockedEngineBackendTest {};
TEST_F(SyncControlTest, TestDetermineBpmMultiplier) { EXPECT_EQ(SyncControl::kBpmUnity, m_pChannel1->getEngineBuffer() ->m_pSyncControl->determineBpmMultiplier( mixxx::Bpm(70), mixxx::Bpm(80))); EXPECT_EQ(SyncControl::kBpmHalve, m_pChannel1->getEngineBuffer() ->m_pSyncControl->determineBpmMultiplier( mixxx::Bpm(70), mixxx::Bpm(160))); EXPECT_EQ(SyncControl::kBpmDouble, m_pChannel1->getEngineBuffer() ->m_pSyncControl->determineBpmMultiplier( mixxx::Bpm(70), mixxx::Bpm(40)));}