Blender V2.61 - r43446
|
#include <AUD_FileFactory.h>
Public Member Functions | |
AUD_FileFactory (std::string filename) | |
AUD_FileFactory (const data_t *buffer, int size) | |
virtual AUD_Reference < AUD_IReader > | createReader () |
This factory tries to read a sound file via all available file readers.
Definition at line 42 of file AUD_FileFactory.h.
AUD_FileFactory::AUD_FileFactory | ( | std::string | filename | ) |
Creates a new factory.
filename | The sound file path. |
Definition at line 46 of file AUD_FileFactory.cpp.
AUD_FileFactory::AUD_FileFactory | ( | const data_t * | buffer, |
int | size | ||
) |
Creates a new factory.
buffer | The buffer to read from. |
size | The size of the buffer. |
Definition at line 51 of file AUD_FileFactory.cpp.
References size().
AUD_Reference< AUD_IReader > AUD_FileFactory::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 59 of file AUD_FileFactory.cpp.
References AUD_ERROR_FILE, AUD_THROW, AUD_Reference< T >::isNull(), and read_error.