1
0
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:
rbdannenberg
2012-07-18 03:44:34 +00:00
parent a42f5b45cb
commit 16fd848f9e
3 changed files with 9 additions and 1 deletions

View File

@@ -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()
{

View File

@@ -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);