25#ifndef SFML_SOUNDFILEFACTORY_HPP
26#define SFML_SOUNDFILEFACTORY_HPP
57 static void registerReader();
66 static void unregisterReader();
75 static void registerWriter();
84 static void unregisterWriter();
151 typedef std::vector<ReaderFactory> ReaderFactoryArray;
155 bool (*check)(
const std::string&);
158 typedef std::vector<WriterFactory> WriterFactoryArray;
163 static ReaderFactoryArray s_readers;
164 static WriterFactoryArray s_writers;
Manages and instantiates sound file readers and writers.
static SoundFileReader * createReaderFromMemory(const void *data, std::size_t sizeInBytes)
Instantiate the right codec for the given file in memory.
static SoundFileWriter * createWriterFromFilename(const std::string &filename)
Instantiate the right writer for the given file on disk.
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.
Abstract base class for sound file decoding.
Abstract base class for sound file encoding.