Blender V2.61 - r43446
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_Reference< AUD_IFactory > factory)
virtual AUD_Reference
< AUD_IReader
createReader ()

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 41 of file AUD_StreamBufferFactory.h.


Constructor & Destructor Documentation

AUD_StreamBufferFactory::AUD_StreamBufferFactory ( AUD_Reference< 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 36 of file AUD_StreamBufferFactory.cpp.

References AUD_BUFFER_RESIZE_BYTES, AUD_SAMPLE_SIZE, AUD_Specs::channels, length(), AUD_Specs::rate, and size().


Member Function Documentation

AUD_Reference< AUD_IReader > AUD_StreamBufferFactory::createReader ( ) [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 73 of file AUD_StreamBufferFactory.cpp.


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