17 #include "Properties.h"
18 #include "CrossFadeQueue.h"
39 void update(
long fadeLength);
42 double tick(
double fadeInInput,
double fadeOutInput);
54 return ((
double) fadeInInput * fadeInGain_) + ((double) fadeOutInput * fadeOutGain_);
62 if (fadeOutIdx_ >= fadeLength_)
64 assert(fadeInIdx_ < 0);
CrossFade(CrossFadeQueue &owner)
Class constructor, takes CrossFadeQueue that owns it.
~CrossFade()
Class destructor.
double tick(double fadeInInput, double fadeOutInput)
Outputs crossfade of two samples.
void increment()
Increments the pointer to the crossfade table.
bool atStart() const
Returns true if the CrossFade is at step 0.
void finishFade()
Manages cleanup and end of crossfade.
void update(long fadeLength)
updates the CrossFade with a new fadelength.