25 #ifndef SFML_SOUNDFILEFACTORY_HPP
26 #define SFML_SOUNDFILEFACTORY_HPP
31 #include <SFML/Audio/Export.hpp>
39 class SoundFileReader;
40 class SoundFileWriter;
57 static void registerReader();
66 static void unregisterReader();
75 static void registerWriter();
84 static void unregisterWriter();
98 static SoundFileReader* createReaderFromFilename(
const std::string& filename);
113 static SoundFileReader* createReaderFromMemory(
const void* data, std::size_t sizeInBytes);
139 static SoundFileWriter* createWriterFromFilename(
const std::string& filename);
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>
171 #endif // SFML_SOUNDFILEFACTORY_HPP