|
Blender
V2.59
|
#include <AUD_FaderReader.h>

Public Member Functions | |
| AUD_FaderReader (AUD_IReader *reader, AUD_FadeType type, float start, float length) | |
| virtual void | read (int &length, sample_t *&buffer) |
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 43 of file AUD_FaderReader.h.
| AUD_FaderReader::AUD_FaderReader | ( | AUD_IReader * | reader, |
| AUD_FadeType | type, | ||
| float | start, | ||
| float | length | ||
| ) |
Creates a new fader reader.
| type | The fading type. |
| start | The time where fading should start in seconds. |
| length | How long fading should last in seconds. |
Definition at line 36 of file AUD_FaderReader.cpp.
| void AUD_FaderReader::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.
| [in,out] | length | The 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] | buffer | The pointer to the buffer with the samples. |
Reimplemented from AUD_EffectReader.
Definition at line 46 of file AUD_FaderReader.cpp.
References AUD_FADE_OUT, AUD_SAMPLE_SIZE, AUD_Specs::channels, AUD_Buffer::getBuffer(), AUD_IReader::getPosition(), AUD_Buffer::getSize(), AUD_IReader::getSpecs(), i, AUD_EffectReader::m_reader, AUD_Specs::rate, AUD_IReader::read(), and AUD_Buffer::resize().