#include <boost/algorithm/string.hpp>
#include <boost/cstdint.hpp>
+#include <boost/noncopyable.hpp>
#include <AL/al.h>
#include <AL/alc.h>
#include <vorbis/codec.h>
// SOUND RESOURCE
-class sound_resource
+class sound_resource : public boost::noncopyable
{
public:
}
- bool read(buffer& buf)
+ bool read(buffer& buf) const
{
if (buffer_)
{
}
- bool read(buffer& buf, uint64_t& sample)
+ bool read(buffer& buf, uint64_t& sample) const
{
if (ov_pcm_seek_lap(&file_, sample) != 0)
{
private:
- OggVorbis_File file_;
- buffer buffer_;
+ mutable OggVorbis_File file_;
+ mutable buffer buffer_;
};