25#ifndef SFML_SOUNDFILEFACTORY_HPP
26#define SFML_SOUNDFILEFACTORY_HPP
31#include <SFML/Audio/Export.hpp>
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;
169#include <SFML/Audio/SoundFileFactory.inl>
Manages and instantiates sound file readers and writers.
static void unregisterWriter()
Unregister a writer.
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 void registerWriter()
Register a new writer.
static void unregisterReader()
Unregister a reader.
static SoundFileReader * createReaderFromFilename(const std::string &filename)
Instantiate the right reader for the given file on disk.
static void registerReader()
Register a new reader.
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.