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;
72 bool openFromFile(
const std::string& filename);
85 bool openFromMemory(
const void* data, std::size_t sizeInBytes);
109 bool openForWriting(
const std::string& filename,
unsigned int channelCount,
unsigned int sampleRate);
117 Uint64 getSampleCount()
const;
125 unsigned int getChannelCount()
const;
133 unsigned int getSampleRate()
const;
144 Time getDuration()
const;
159 void seek(Uint64 sampleOffset);
173 void seek(
Time timeOffset);
184 Uint64 read(Int16* samples, Uint64 maxCount);
200 Uint64 m_sampleCount;
201 unsigned int m_channelCount;
202 unsigned int m_sampleRate;
208 #endif // SFML_INPUTSOUNDFILE_HPP
Utility class that makes any derived class non-copyable.
Abstract base class for sound file decoding.