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

Public Member Functions | |
| AUD_StreamBufferFactory (AUD_IFactory *factory) | |
| virtual AUD_IReader * | createReader () const |
This factory creates a buffer out of a reader. This way normally streamed sound sources can be loaded into memory for buffered playback.
Definition at line 43 of file AUD_StreamBufferFactory.h.
| AUD_StreamBufferFactory::AUD_StreamBufferFactory | ( | AUD_IFactory * | factory | ) |
Creates the factory and reads the reader created by the factory supplied to the buffer.
| factory | The factory that creates the reader for buffering. |
| AUD_Exception | Thrown if the reader cannot be created. |
Definition at line 38 of file AUD_StreamBufferFactory.cpp.
References AUD_BUFFER_RESIZE_BYTES, AUD_SAMPLE_SIZE, AUD_Specs::channels, AUD_IFactory::createReader(), AUD_Reference< T >::get(), AUD_Buffer::getBuffer(), AUD_IReader::getLength(), AUD_Buffer::getSize(), AUD_IReader::getSpecs(), length(), AUD_Specs::rate, AUD_IReader::read(), AUD_Buffer::resize(), and size().
| AUD_IReader * AUD_StreamBufferFactory::createReader | ( | ) | const [virtual] |
Creates a reader for playback of the sound source.
| AUD_Exception | An exception may be thrown if there has been a more unexpected error during reader creation. |
Implements AUD_IFactory.
Definition at line 78 of file AUD_StreamBufferFactory.cpp.