diff options
Diffstat (limited to 'src/track/track.cpp')
-rw-r--r-- | src/track/track.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/track/track.cpp b/src/track/track.cpp index 44ce41fc1c..be290170d1 100644 --- a/src/track/track.cpp +++ b/src/track/track.cpp @@ -1081,10 +1081,9 @@ bool Track::importPendingBeatsWhileLocked() { // The sample rate is supposed to be consistent DEBUG_ASSERT(m_record.getStreamInfoFromSource()->getSignalInfo().getSampleRate() == m_record.getMetadata().getStreamInfo().getSignalInfo().getSampleRate()); - const auto pBeats = mixxx::Beats::fromBeatPositions( - m_record.getStreamInfoFromSource()->getSignalInfo().getSampleRate(), + const auto pBeats = m_pBeatsImporterPending->importBeatsAndApplyTimingOffset( - getLocation(), *m_record.getStreamInfoFromSource())); + getLocation(), *m_record.getStreamInfoFromSource()); DEBUG_ASSERT(m_pBeatsImporterPending->isEmpty()); m_pBeatsImporterPending.reset(); return setBeatsWhileLocked(pBeats); |