Blender V2.61 - r43446
|
#include <AUD_IReader.h>
Public Member Functions | |
virtual | ~AUD_IReader () |
virtual bool | isSeekable () const =0 |
virtual void | seek (int position)=0 |
virtual int | getLength () const =0 |
virtual int | getPosition () const =0 |
virtual AUD_Specs | getSpecs () const =0 |
virtual void | read (int &length, bool &eos, sample_t *buffer)=0 |
This class represents a sound source as stream or as buffer which can be read for example by another reader, a device or whatever.
Definition at line 39 of file AUD_IReader.h.
virtual AUD_IReader::~AUD_IReader | ( | ) | [inline, virtual] |
Destroys the reader.
Definition at line 45 of file AUD_IReader.h.
virtual int AUD_IReader::getLength | ( | ) | const [pure virtual] |
Returns an approximated length of the source in samples.
Implemented in AUD_FFMPEGReader, AUD_DelayReader, AUD_DoubleReader, AUD_EffectReader, AUD_LimiterReader, AUD_LoopReader, AUD_ReverseReader, AUD_SuperposeReader, AUD_BufferReader, AUD_JOSResampleReader, AUD_LinearResampleReader, AUD_SequencerReader, AUD_SilenceReader, AUD_SinusReader, AUD_SndFileReader, and AUD_SRCResampleReader.
virtual int AUD_IReader::getPosition | ( | ) | const [pure virtual] |
Returns the position of the source as a sample count value.
Implemented in AUD_FFMPEGReader, AUD_DelayReader, AUD_DoubleReader, AUD_EffectReader, AUD_LimiterReader, AUD_LoopReader, AUD_ReverseReader, AUD_SuperposeReader, AUD_BufferReader, AUD_JOSResampleReader, AUD_LinearResampleReader, AUD_SequencerReader, AUD_SilenceReader, AUD_SinusReader, AUD_SndFileReader, and AUD_SRCResampleReader.
virtual AUD_Specs AUD_IReader::getSpecs | ( | ) | const [pure virtual] |
Returns the specification of the reader.
Implemented in AUD_FFMPEGReader, AUD_DoubleReader, AUD_EffectReader, AUD_PitchReader, AUD_SuperposeReader, AUD_BufferReader, AUD_ChannelMapperReader, AUD_JOSResampleReader, AUD_LinearResampleReader, AUD_SequencerReader, AUD_SilenceReader, AUD_SinusReader, AUD_SndFileReader, and AUD_SRCResampleReader.
virtual bool AUD_IReader::isSeekable | ( | ) | const [pure virtual] |
Tells whether the source provides seeking functionality or not.
Implemented in AUD_FFMPEGReader, AUD_DoubleReader, AUD_EffectReader, AUD_SuperposeReader, AUD_BufferReader, AUD_SequencerReader, AUD_SilenceReader, AUD_SinusReader, and AUD_SndFileReader.
virtual void AUD_IReader::read | ( | int & | length, |
bool & | eos, | ||
sample_t * | buffer | ||
) | [pure virtual] |
Request to read the next length samples out of the source. The buffer supplied has the needed size.
[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] | eos | End of stream, whether the end is reached or not. |
[in] | buffer | The pointer to the buffer to read into. |
Implemented in AUD_FFMPEGReader, AUD_BaseIIRFilterReader, AUD_DelayReader, AUD_DoubleReader, AUD_EffectReader, AUD_FaderReader, AUD_LimiterReader, AUD_LoopReader, AUD_ReverseReader, AUD_SuperposeReader, AUD_BufferReader, AUD_ChannelMapperReader, AUD_ConverterReader, AUD_JOSResampleReader, AUD_LinearResampleReader, AUD_SequencerReader, AUD_SilenceReader, AUD_SinusReader, AUD_SndFileReader, and AUD_SRCResampleReader.
virtual void AUD_IReader::seek | ( | int | position | ) | [pure virtual] |
Seeks to a specific position in the source.
position | The position to seek for measured in samples. To get from a given time to the samples you simply have to multiply the time value in seconds with the sample rate of the reader. |
Implemented in AUD_FFMPEGReader, AUD_DelayReader, AUD_DoubleReader, AUD_EffectReader, AUD_LimiterReader, AUD_LoopReader, AUD_ReverseReader, AUD_SuperposeReader, AUD_BufferReader, AUD_JOSResampleReader, AUD_LinearResampleReader, AUD_SequencerReader, AUD_SilenceReader, AUD_SinusReader, AUD_SndFileReader, and AUD_SRCResampleReader.