mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-01 17:34:24 +01:00
Modified to allow compile with USE_MIDI turned off (no NoteTrack). Tested with USE_MIDI both defined and undefined when compiled as Unicode Debug/Win32.
This commit is contained in:
@@ -35,6 +35,7 @@ bool EffectSoundTouch::ProcessLabelTrack(Track *track)
|
||||
return true;
|
||||
}
|
||||
|
||||
#ifdef USE_MIDI
|
||||
bool EffectSoundTouch::ProcessNoteTrack(Track *track)
|
||||
{
|
||||
NoteTrack *nt = (NoteTrack *) track;
|
||||
@@ -42,6 +43,7 @@ bool EffectSoundTouch::ProcessNoteTrack(Track *track)
|
||||
nt->WarpAndTransposeNotes(mCurT0, mCurT1, *GetTimeWarper(), mSemitones);
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
bool EffectSoundTouch::Process()
|
||||
{
|
||||
|
||||
@@ -48,7 +48,9 @@ class EffectSoundTouch:public Effect {
|
||||
|
||||
private:
|
||||
bool ProcessLabelTrack(Track *track);
|
||||
#ifdef USE_MIDI
|
||||
bool ProcessNoteTrack(Track *track);
|
||||
#endif
|
||||
bool ProcessOne(WaveTrack * t, sampleCount start, sampleCount end);
|
||||
bool ProcessStereo(WaveTrack* leftTrack, WaveTrack* rightTrack,
|
||||
sampleCount start, sampleCount end);
|
||||
|
||||
Reference in New Issue
Block a user