mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-27 23:18:46 +01: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
@@ -9,6 +9,9 @@ Paul Licameli split from TrackPanel.cpp
|
||||
**********************************************************************/
|
||||
|
||||
#include "../../../../Audacity.h"
|
||||
|
||||
#ifdef USE_MIDI
|
||||
|
||||
#include "NoteTrackButtonHandle.h"
|
||||
|
||||
#include "../../../../HitTestResult.h"
|
||||
@@ -113,3 +116,4 @@ UIHandle::Result NoteTrackButtonHandle::Cancel(AudacityProject *)
|
||||
return RefreshCode::RefreshNone;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -9,6 +9,9 @@ Paul Licameli split from TrackPanel.cpp
|
||||
**********************************************************************/
|
||||
|
||||
#include "../../../../Audacity.h"
|
||||
|
||||
#ifdef USE_MIDI
|
||||
|
||||
#include "NoteTrackVZoomHandle.h"
|
||||
#include "../../../../Experimental.h"
|
||||
#include "NoteTrackVRulerControls.h"
|
||||
@@ -332,3 +335,5 @@ void NoteTrackVZoomHandle::DrawExtras
|
||||
TrackVRulerControls::DrawZooming
|
||||
( dc, mRect, panelRect, mZoomStart, mZoomEnd );
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -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