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

Public Member Functions | |
| AUD_ConverterReader (AUD_IReader *reader, AUD_DeviceSpecs specs) | |
| virtual AUD_Specs | getSpecs () const |
| virtual void | read (int &length, sample_t *&buffer) |
This class converts a sound source from one to another format.
Definition at line 42 of file AUD_ConverterReader.h.
| AUD_ConverterReader::AUD_ConverterReader | ( | AUD_IReader * | reader, |
| AUD_DeviceSpecs | specs | ||
| ) |
Creates a converter reader.
| reader | The reader to convert. |
| specs | The target specification. |
Definition at line 34 of file AUD_ConverterReader.cpp.
References AUD_convert_float_double(), AUD_convert_float_s16(), AUD_convert_float_s24_be(), AUD_convert_float_s24_le(), AUD_convert_float_s32(), AUD_convert_float_u8(), AUD_FORMAT_FLOAT32, AUD_FORMAT_FLOAT64, AUD_FORMAT_S16, AUD_FORMAT_S24, AUD_FORMAT_S32, AUD_FORMAT_U8, AUD_DeviceSpecs::format, AUD_IReader::getSpecs(), and AUD_DeviceSpecs::specs.
| AUD_Specs AUD_ConverterReader::getSpecs | ( | ) | const [virtual] |
Returns the specification of the reader.
Reimplemented from AUD_EffectReader.
Definition at line 73 of file AUD_ConverterReader.cpp.
References AUD_DeviceSpecs::specs.
| void AUD_ConverterReader::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 78 of file AUD_ConverterReader.cpp.
References AUD_SAMPLE_SIZE, AUD_DeviceSpecs::channels, AUD_Buffer::getBuffer(), AUD_Buffer::getSize(), AUD_EffectReader::m_reader, AUD_IReader::read(), and AUD_Buffer::resize().