25 #ifndef SFML_INPUTSOUNDFILE_HPP
26 #define SFML_INPUTSOUNDFILE_HPP
31 #include <SFML/Audio/Export.hpp>
32 #include <SFML/System/NonCopyable.hpp>
33 #include <SFML/System/Time.hpp>
40 class SoundFileReader;
73 bool openFromFile(
const std::string& filename);
87 bool openFromMemory(
const void* data, std::size_t sizeInBytes);
112 bool openForWriting(
const std::string& filename,
unsigned int channelCount,
unsigned int sampleRate);
120 Uint64 getSampleCount()
const;
128 unsigned int getChannelCount()
const;
136 unsigned int getSampleRate()
const;
147 Time getDuration()
const;
165 void seek(Uint64 sampleOffset);
179 void seek(
Time timeOffset);
190 Uint64 read(Int16* samples, Uint64 maxCount);
206 Uint64 m_sampleCount;
207 unsigned int m_channelCount;
208 unsigned int m_sampleRate;
214 #endif // SFML_INPUTSOUNDFILE_HPP
Utility class that makes any derived class non-copyable.
Abstract base class for sound file decoding.