Finally, to ensure that your audio unit plays well in host applications, implement the tail time property, kAudioUnitProperty_TailTime.
To do this, simply state in your TremoloUnit class definition that your audio unit supports the property by changing the return value of the SupportsTail method to true.
Listing 5-14 Implementing the tail time property (TremoloUnit.h)
virtual bool SupportsTail () {return true;} |
Given the nature of the DSP your audio unit performs, its tail time is 0 seconds—so you don’t need to override the GetTailTime method. In the AUBase superclass, this method reports a tail time of 0 seconds, which is what you want your audio unit to report.
Last updated: 2007-10-31