
Home Information Classes Download Usage Mail List Requirements Links FAQ Tutorial
27 WvOut(
void ) : frameCounter_(0), clipping_(false) {};
45 virtual void tick(
const StkFloat sample ) = 0;
53 StkFloat& clipTest( StkFloat& sample );
56 unsigned long frameCounter_;
61 inline StkFloat& WvOut :: clipTest( StkFloat& sample )
68 else if ( sample < -1.0 ) {
73 if ( clip ==
true && clipping_ ==
false ) {
76 oStream_ <<
"WvOut: data value(s) outside +-1.0 detected ... clamping at outer bound!";
StkFloat getTime(void) const
Return the number of seconds of data output.
Definition: WvOut.h:33
bool clipStatus(void)
Returns true if clipping has been detected during output since instantiation or the last reset.
Definition: WvOut.h:36
static StkFloat sampleRate(void)
Static method that returns the current STK sample rate.
Definition: Stk.h:145
void resetClipStatus(void)
Reset the clipping status to false.
Definition: WvOut.h:39
An STK class to handle vectorized audio data.
Definition: Stk.h:275
WvOut(void)
Default constructor.
Definition: WvOut.h:27
virtual void tick(const StkFloat sample)=0
Output a single sample to all channels in a sample frame.
static void handleError(const char *message, StkError::Type type)
Static function for error reporting and handling using c-strings.
STK audio output abstract base class.
Definition: WvOut.h:22
The STK namespace.
Definition: ADSR.h:6
unsigned long getFrameCount(void) const
Return the number of sample frames output.
Definition: WvOut.h:30
STK base class.
Definition: Stk.h:132