Blender  V2.59
Public Member Functions
AUD_FileFactory Class Reference

#include <AUD_FileFactory.h>

Inheritance diagram for AUD_FileFactory:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 AUD_FileFactory (std::string filename)
 AUD_FileFactory (const data_t *buffer, int size)
virtual AUD_IReadercreateReader () const

Detailed Description

This factory tries to read a sound file via all available file readers.

Definition at line 44 of file AUD_FileFactory.h.


Constructor & Destructor Documentation

AUD_FileFactory::AUD_FileFactory ( std::string  filename)

Creates a new factory.

Parameters:
filenameThe sound file path.

Definition at line 49 of file AUD_FileFactory.cpp.

AUD_FileFactory::AUD_FileFactory ( const data_t buffer,
int  size 
)

Creates a new factory.

Parameters:
bufferThe buffer to read from.
sizeThe size of the buffer.

Definition at line 54 of file AUD_FileFactory.cpp.

References AUD_Reference< T >::get(), AUD_Buffer::getBuffer(), and size().


Member Function Documentation

AUD_IReader * AUD_FileFactory::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 62 of file AUD_FileFactory.cpp.

References AUD_ERROR_FILE, AUD_THROW, AUD_Reference< T >::get(), and read_error.

Referenced by AUD_readSoundBuffer().


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