1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-01 08:29:27 +02:00

NoteTrackShifter: Fix build without USE_MIDI

Try to keep PortMIDI/PortSMF optional by wrapping it within USE_MIDI
check like NoteTrack class itself is.

Signed-off-by: Mart Raudsepp <leio@gentoo.org>
This commit is contained in:
Mart Raudsepp 2021-07-23 11:41:01 +03:00 committed by GitHub
parent 5e958083e6
commit 3951617306
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@
@brief headerless file injects method definitions for time shifting of NoteTrack
*/
#ifdef USE_MIDI
#include "../../../ui/TimeShiftHandle.h"
#include "../../../../NoteTrack.h"
#include "../../../../ViewInfo.h"
@ -60,3 +61,4 @@ template<> template<> auto MakeNoteTrackShifter::Implementation() -> Function {
};
}
static MakeNoteTrackShifter registerMakeNoteTrackShifter;
#endif