Blender  V2.59
Public Member Functions
AUD_StreamBufferFactory Class Reference

#include <AUD_StreamBufferFactory.h>

Inheritance diagram for AUD_StreamBufferFactory:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 AUD_StreamBufferFactory (AUD_IFactory *factory)
virtual AUD_IReadercreateReader () const

Detailed Description

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.


Constructor & Destructor Documentation

AUD_StreamBufferFactory::AUD_StreamBufferFactory ( AUD_IFactory factory)

Creates the factory and reads the reader created by the factory supplied to the buffer.

Parameters:
factoryThe factory that creates the reader for buffering.
Exceptions:
AUD_ExceptionThrown 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().


Member Function Documentation

AUD_IReader * AUD_StreamBufferFactory::createReader ( ) const [virtual]

Creates a reader for playback of the sound source.

Returns:
A pointer to an AUD_IReader object or NULL if there has been an error.
Exceptions:
AUD_ExceptionAn 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.


The documentation for this class was generated from the following files: