25 #ifndef CPP3DS_SOUNDFILEFACTORY_HPP
26 #define CPP3DS_SOUNDFILEFACTORY_HPP
38 class SoundFileReader;
39 class SoundFileWriter;
150 typedef std::vector<ReaderFactory> ReaderFactoryArray;
154 bool (*check)(
const std::string&);
157 typedef std::vector<WriterFactory> WriterFactoryArray;
162 static ReaderFactoryArray s_readers;
163 static WriterFactoryArray s_writers;
168 #include <cpp3ds/Audio/SoundFileFactory.inl>
170 #endif // CPP3DS_SOUNDFILEFACTORY_HPP
static void registerWriter()
Register a new writer.
static SoundFileReader * createReaderFromMemory(const void *data, std::size_t sizeInBytes)
Instantiate the right codec for the given file in memory.
Abstract base class for sound file encoding.
static void unregisterReader()
Unregister a reader.
static void unregisterWriter()
Unregister a writer.
static SoundFileReader * createReaderFromFilename(const std::string &filename)
Instantiate the right reader for the given file on disk.
static SoundFileReader * createReaderFromStream(InputStream &stream)
Instantiate the right codec for the given file in stream.
static void registerReader()
Register a new reader.
Manages and instantiates sound file readers and writers.
static SoundFileWriter * createWriterFromFilename(const std::string &filename)
Instantiate the right writer for the given file on disk.
Abstract base class for sound file decoding.