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

AUD_EnvelopeFactory Class Reference

#include <AUD_EnvelopeFactory.h>

Inheritance diagram for AUD_EnvelopeFactory:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 AUD_EnvelopeFactory (AUD_Reference< AUD_IFactory > factory, float attack, float release, float threshold, float arthreshold)
virtual AUD_Reference
< AUD_IReader
createReader ()

Static Public Member Functions

static sample_t envelopeFilter (AUD_CallbackIIRFilterReader *reader, EnvelopeParameters *param)
static void endEnvelopeFilter (EnvelopeParameters *param)

Detailed Description

This factory creates an envelope follower reader.

Definition at line 40 of file AUD_EnvelopeFactory.h.


Constructor & Destructor Documentation

AUD_EnvelopeFactory::AUD_EnvelopeFactory ( AUD_Reference< AUD_IFactory factory,
float  attack,
float  release,
float  threshold,
float  arthreshold 
)

Creates a new envelope factory.

Parameters:
factoryThe input factory.
attackThe attack value in seconds.
releaseThe release value in seconds.
thresholdThe threshold value.
arthresholdThe attack/release threshold value.

Definition at line 57 of file AUD_EnvelopeFactory.cpp.


Member Function Documentation

AUD_Reference< AUD_IReader > AUD_EnvelopeFactory::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 68 of file AUD_EnvelopeFactory.cpp.

References EnvelopeParameters::arthreshold, endEnvelopeFilter(), envelopeFilter(), AUD_EffectFactory::getReader(), pow(), EnvelopeParameters::release, and EnvelopeParameters::threshold.

void AUD_EnvelopeFactory::endEnvelopeFilter ( EnvelopeParameters param) [static]

Definition at line 52 of file AUD_EnvelopeFactory.cpp.

Referenced by createReader().

sample_t AUD_EnvelopeFactory::envelopeFilter ( AUD_CallbackIIRFilterReader reader,
EnvelopeParameters param 
) [static]

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