Blender  V2.59
Public Member Functions
AUD_BandPassReader Class Reference

#include <AUD_BandPassReader.h>

Inheritance diagram for AUD_BandPassReader:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 AUD_BandPassReader (AUD_IReader *reader, float low, float high)
virtual ~AUD_BandPassReader ()
virtual AUD_ReaderType getType ()
virtual void read (int &length, sample_t *&buffer)

Detailed Description

This class only passes a specific frequency band of another reader.

Definition at line 43 of file AUD_BandPassReader.h.


Constructor & Destructor Documentation

AUD_BandPassReader::AUD_BandPassReader ( AUD_IReader reader,
float  low,
float  high 
)

Creates a new band pass reader.

Parameters:
readerThe reader to read from.
lowThe lowest passed frequency.
highThe highest passed frequency.

Definition at line 38 of file AUD_BandPassReader.cpp.

AUD_BandPassReader::~AUD_BandPassReader ( ) [virtual]

Destroys the reader.

Definition at line 48 of file AUD_BandPassReader.cpp.


Member Function Documentation

AUD_ReaderType AUD_BandPassReader::getType ( void  ) [virtual]

Definition at line 61 of file AUD_BandPassReader.cpp.

References AUD_EffectReader::m_reader.

void AUD_BandPassReader::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 66 of file AUD_BandPassReader.cpp.

References AUD_SAMPLE_SIZE, AUD_Specs::channels, AUD_Buffer::getBuffer(), AUD_Buffer::getSize(), AUD_IReader::getSpecs(), i, length(), AUD_EffectReader::m_reader, AUD_Specs::rate, AUD_IReader::read(), and AUD_Buffer::resize().


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