Blender V2.61 - r43446
Public Member Functions

AUD_FaderReader Class Reference

#include <AUD_FaderReader.h>

Inheritance diagram for AUD_FaderReader:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 AUD_FaderReader (AUD_Reference< AUD_IReader > reader, AUD_FadeType type, float start, float length)
virtual void read (int &length, bool &eos, sample_t *buffer)

Detailed Description

This class fades another reader. If the fading type is AUD_FADE_IN, everything before the fading start will be silenced, for AUD_FADE_OUT that's true for everything after fading ends.

Definition at line 41 of file AUD_FaderReader.h.


Constructor & Destructor Documentation

AUD_FaderReader::AUD_FaderReader ( AUD_Reference< AUD_IReader reader,
AUD_FadeType  type,
float  start,
float  length 
)

Creates a new fader reader.

Parameters:
typeThe fading type.
startThe time where fading should start in seconds.
lengthHow long fading should last in seconds.

Definition at line 34 of file AUD_FaderReader.cpp.


Member Function Documentation

void AUD_FaderReader::read ( int &  length,
bool &  eos,
sample_t buffer 
) [virtual]

Request to read the next length samples out of the source. The buffer supplied has the needed size.

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]eosEnd of stream, whether the end is reached or not.
[in]bufferThe pointer to the buffer to read into.

Reimplemented from AUD_EffectReader.

Definition at line 43 of file AUD_FaderReader.cpp.

References AUD_FADE_OUT, AUD_SAMPLE_SIZE, AUD_Specs::channels, i, AUD_EffectReader::m_reader, and AUD_Specs::rate.


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