1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-11 17:41:15 +02:00

Track: disable TrackList::Add<NoteTrack> if MIDI support is disabled

Fixes build failure when configured with --without-midi.
This commit is contained in:
Max Kellermann 2016-04-28 09:25:22 +02:00 committed by Paul Licameli
parent 1b4d198b69
commit 8ef83759a7

View File

@ -878,7 +878,9 @@ Track *TrackList::Add(std::unique_ptr<TrackKind> &&t)
// Make instantiations for the linker to find // Make instantiations for the linker to find
template Track *TrackList::Add<TimeTrack>(std::unique_ptr<TimeTrack> &&); template Track *TrackList::Add<TimeTrack>(std::unique_ptr<TimeTrack> &&);
#if defined(USE_MIDI)
template Track *TrackList::Add<NoteTrack>(std::unique_ptr<NoteTrack> &&); template Track *TrackList::Add<NoteTrack>(std::unique_ptr<NoteTrack> &&);
#endif
template Track *TrackList::Add<WaveTrack>(std::unique_ptr<WaveTrack> &&); template Track *TrackList::Add<WaveTrack>(std::unique_ptr<WaveTrack> &&);
template Track *TrackList::Add<LabelTrack>(std::unique_ptr<LabelTrack> &&); template Track *TrackList::Add<LabelTrack>(std::unique_ptr<LabelTrack> &&);