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> 41 class SoundFileReader;
74 bool openFromFile(
const std::string& filename);
88 bool openFromMemory(
const void* data, std::size_t sizeInBytes);
109 Uint64 getSampleCount()
const;
117 unsigned int getChannelCount()
const;
125 unsigned int getSampleRate()
const;
136 Time getDuration()
const;
144 Time getTimeOffset()
const;
152 Uint64 getSampleOffset()
const;
171 void seek(Uint64 sampleOffset);
185 void seek(
Time timeOffset);
196 Uint64 read(Int16* samples, Uint64 maxCount);
212 Uint64 m_sampleOffset;
213 Uint64 m_sampleCount;
214 unsigned int m_channelCount;
215 unsigned int m_sampleRate;
221 #endif // SFML_INPUTSOUNDFILE_HPP
Abstract base class for sound file decoding.
Utility class that makes any derived class non-copyable.