Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <CodecRegistry.h>
Public Member Functions | |
CodecRegistry () throw () | |
~CodecRegistry () | |
void | add (Codec *codec, int priority=0) throw () |
void | remove (Codec *codec) throw () |
Codec * | findByName (const std::string &name) const throw (CodecNotFoundException) |
Codec * | findByFile (const std::string &path, VSFileSystem::VSFileType type=VSFileSystem::UnknownFile) const throw (CodecNotFoundException) |
Stream * | open (const std::string &path, VSFileSystem::VSFileType type=VSFileSystem::UnknownFile) const throw (Exception) |
Additional Inherited Members | |
![]() | |
static CodecRegistry * | getSingleton () |
![]() | |
~Singleton () | |
![]() | |
static void | initializeSingleton () |
static void | deinitializeSingleton () |
![]() | |
static CodecRegistry * | _singletonInstance |
Codec registry class.
Definition at line 30 of file CodecRegistry.h.
Audio::CodecRegistry::CodecRegistry | ( | ) | ||
throw | ( | |||
) |
Construct an empty registry
Definition at line 16 of file CodecRegistry.cpp.
Audio::CodecRegistry::~CodecRegistry | ( | ) |
Definition at line 20 of file CodecRegistry.cpp.
Add a codec to the registry
codec | The codec to be added to the registry. |
Definition at line 31 of file CodecRegistry.cpp.
Referenced by Audio::CodecRegistration::CodecRegistration().
Codec * Audio::CodecRegistry::findByFile | ( | const std::string & | path, |
VSFileSystem::VSFileType | type = VSFileSystem::UnknownFile |
||
) | const | ||
throw | ( | CodecNotFoundException | |
) |
Find a codec that can handle the file.
Definition at line 102 of file CodecRegistry.cpp.
Codec * Audio::CodecRegistry::findByName | ( | const std::string & | name) | const | |
throw | ( | CodecNotFoundException | |||
) |
Find a codec by its name
Definition at line 71 of file CodecRegistry.cpp.
Stream * Audio::CodecRegistry::open | ( | const std::string & | path, |
VSFileSystem::VSFileType | type = VSFileSystem::UnknownFile |
||
) | const | ||
throw | ( | Exception | |
) |
Open the specified file with a suitable codec.
Definition at line 141 of file CodecRegistry.cpp.
References Audio::Codec::open().
void Audio::CodecRegistry::remove | ( | Codec * | codec) | ||
throw | ( | ||||
) |
Remove a codec from the registry
codec | The codec to be removed from the registry. |
Definition at line 56 of file CodecRegistry.cpp.