Blender V2.61 - r43446
Public Member Functions | Static Public Member Functions

AUD_AccumulatorFactory Class Reference

#include <AUD_AccumulatorFactory.h>

Inheritance diagram for AUD_AccumulatorFactory:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 AUD_AccumulatorFactory (AUD_Reference< AUD_IFactory > factory, bool additive=false)
virtual AUD_Reference
< AUD_IReader
createReader ()

Static Public Member Functions

static sample_t accumulatorFilterAdditive (AUD_CallbackIIRFilterReader *reader, void *useless)
static sample_t accumulatorFilter (AUD_CallbackIIRFilterReader *reader, void *useless)

Detailed Description

This factory creates an accumulator reader.

The accumulator adds the difference at the input to the last output in case it's positive. In additive mode it additionaly adds the difference always. So in case the difference is positive, it's added twice.

Definition at line 43 of file AUD_AccumulatorFactory.h.


Constructor & Destructor Documentation

AUD_AccumulatorFactory::AUD_AccumulatorFactory ( AUD_Reference< AUD_IFactory factory,
bool  additive = false 
)

Creates a new accumulator factory.

Parameters:
factoryThe input factory.
additiveWhether the accumulator is additive.

Definition at line 53 of file AUD_AccumulatorFactory.cpp.


Member Function Documentation

sample_t AUD_AccumulatorFactory::accumulatorFilter ( AUD_CallbackIIRFilterReader reader,
void *  useless 
) [static]

Definition at line 43 of file AUD_AccumulatorFactory.cpp.

References AUD_BaseIIRFilterReader::x(), and AUD_BaseIIRFilterReader::y().

Referenced by createReader().

sample_t AUD_AccumulatorFactory::accumulatorFilterAdditive ( AUD_CallbackIIRFilterReader reader,
void *  useless 
) [static]

Definition at line 33 of file AUD_AccumulatorFactory.cpp.

References AUD_BaseIIRFilterReader::x(), and AUD_BaseIIRFilterReader::y().

Referenced by createReader().

AUD_Reference< AUD_IReader > AUD_AccumulatorFactory::createReader ( ) [virtual]

Creates a reader for playback of the sound source.

Returns:
A pointer to an AUD_IReader object or NULL if there has been an error.
Exceptions:
AUD_ExceptionAn exception may be thrown if there has been a more unexpected error during reader creation.

Implements AUD_IFactory.

Definition at line 60 of file AUD_AccumulatorFactory.cpp.

References accumulatorFilter(), accumulatorFilterAdditive(), and AUD_EffectFactory::getReader().


The documentation for this class was generated from the following files: