mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-15 15:11:12 +02:00
Fix --without-midi build
See downstream bug: https://bugs.gentoo.org/637110
This commit is contained in:
committed by
Lars Wendler
parent
f665e6da2b
commit
e1f0e974d0
@@ -604,7 +604,7 @@ UIHandle::Result TimeShiftHandle::Drag
|
||||
{
|
||||
trySnap = true;
|
||||
if (pTrack->GetKind() == Track::Wave) {
|
||||
auto wt = static_cast<const WaveTrack *>(pTrack);
|
||||
auto wt = static_cast<const WaveTrack *>(pTrack.get());
|
||||
const double rate = wt->GetRate();
|
||||
// set it to a sample point
|
||||
desiredSlideAmount = rint(desiredSlideAmount * rate) / rate;
|
||||
|
Reference in New Issue
Block a user