Blender V2.61 - r43446
|
#include <AUD_StreamBufferFactory.h>
Public Member Functions | |
AUD_StreamBufferFactory (AUD_Reference< AUD_IFactory > factory) | |
virtual AUD_Reference < AUD_IReader > | createReader () |
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 41 of file AUD_StreamBufferFactory.h.
AUD_StreamBufferFactory::AUD_StreamBufferFactory | ( | AUD_Reference< 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 36 of file AUD_StreamBufferFactory.cpp.
References AUD_BUFFER_RESIZE_BYTES, AUD_SAMPLE_SIZE, AUD_Specs::channels, length(), AUD_Specs::rate, and size().
AUD_Reference< AUD_IReader > AUD_StreamBufferFactory::createReader | ( | ) | [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 73 of file AUD_StreamBufferFactory.cpp.