Blender  V2.59
Public Member Functions | Protected Member Functions
AUD_BaseIIRFilterReader Class Reference

#include <AUD_BaseIIRFilterReader.h>

Inheritance diagram for AUD_BaseIIRFilterReader:
Inheritance graph
[legend]

List of all members.

Public Member Functions

sample_t x (int pos)
sample_t y (int pos)
virtual ~AUD_BaseIIRFilterReader ()
virtual void read (int &length, sample_t *&buffer)
virtual sample_t filter ()=0

Protected Member Functions

 AUD_BaseIIRFilterReader (AUD_IReader *reader, int in, int out)

Detailed Description

This class is a base class for infinite impulse response filters.

Definition at line 41 of file AUD_BaseIIRFilterReader.h.


Constructor & Destructor Documentation

AUD_BaseIIRFilterReader::AUD_BaseIIRFilterReader ( AUD_IReader reader,
int  in,
int  out 
) [protected]

Creates a new base IIR filter reader.

Parameters:
readerThe reader to read from.
inThe count of past input samples needed.
outThe count of past output samples needed.

Definition at line 38 of file AUD_BaseIIRFilterReader.cpp.

AUD_BaseIIRFilterReader::~AUD_BaseIIRFilterReader ( ) [virtual]

Definition at line 52 of file AUD_BaseIIRFilterReader.cpp.


Member Function Documentation

virtual sample_t AUD_BaseIIRFilterReader::filter ( ) [pure virtual]

Implemented in AUD_CallbackIIRFilterReader, and AUD_IIRFilterReader.

Referenced by read().

void AUD_BaseIIRFilterReader::read ( int &  length,
sample_t *&  buffer 
) [virtual]

Request to read the next length samples out of the source. The buffer for reading has to stay valid until the next call of this method or until the reader is deleted.

Parameters:
[in,out]lengthThe count of samples that should be read. Shall contain the real count of samples after reading, in case there were only fewer samples available. A smaller value also indicates the end of the reader.
[out]bufferThe pointer to the buffer with the samples.

Reimplemented from AUD_EffectReader.

Definition at line 58 of file AUD_BaseIIRFilterReader.cpp.

References AUD_SAMPLE_SIZE, CC, filter(), AUD_Buffer::getBuffer(), AUD_Buffer::getSize(), AUD_IReader::getSpecs(), i, length(), AUD_EffectReader::m_reader, AUD_IReader::read(), and AUD_Buffer::resize().

sample_t AUD_BaseIIRFilterReader::x ( int  pos) [inline]
sample_t AUD_BaseIIRFilterReader::y ( int  pos) [inline]

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