mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-22 23:23:51 +00:00
Windows fixes
This commit is contained in:
parent
6ff6d7556c
commit
4a31f4e0f8
2 changed files with 5 additions and 5 deletions
|
@ -28,8 +28,8 @@ class SampleSource : public Stream::Stream
|
||||||
// Disabled functions by default. You can still override them in
|
// Disabled functions by default. You can still override them in
|
||||||
// subclasses.
|
// subclasses.
|
||||||
void seek(size_t pos) { assert(0); }
|
void seek(size_t pos) { assert(0); }
|
||||||
size_t tell() const { assert(0); }
|
size_t tell() const { assert(0); return 0; }
|
||||||
size_t size() const { assert(0); }
|
size_t size() const { assert(0); return 0; }
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef boost::shared_ptr<SampleSource> SampleSourcePtr;
|
typedef boost::shared_ptr<SampleSource> SampleSourcePtr;
|
||||||
|
|
|
@ -23,14 +23,14 @@ class AudiereFile : public audiere::RefImplementation<audiere::File>
|
||||||
: inp(_inp) {}
|
: inp(_inp) {}
|
||||||
|
|
||||||
/// Read 'count' bytes, return bytes successfully read
|
/// Read 'count' bytes, return bytes successfully read
|
||||||
int read(void *buf, int count)
|
int ADR_CALL read(void *buf, int count)
|
||||||
{ return inp->read(buf,count); }
|
{ return inp->read(buf,count); }
|
||||||
|
|
||||||
/// Seek, relative to specified seek mode. Returns true if successful.
|
/// Seek, relative to specified seek mode. Returns true if successful.
|
||||||
bool seek(int pos, audiere::File::SeekMode mode);
|
bool ADR_CALL seek(int pos, audiere::File::SeekMode mode);
|
||||||
|
|
||||||
/// Get current position
|
/// Get current position
|
||||||
int tell()
|
int ADR_CALL tell()
|
||||||
{ assert(inp->hasPosition); return inp->tell(); }
|
{ assert(inp->hasPosition); return inp->tell(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue