mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 13:03:27 +02:00
Fix audio stopping on buffer underruns
This commit is contained in:
@@ -163,6 +163,14 @@ uint FileStream::tell()
|
||||
return m_pos;
|
||||
}
|
||||
|
||||
bool FileStream::eof()
|
||||
{
|
||||
if(!m_caching)
|
||||
return PHYSFS_eof(m_fileHandle);
|
||||
else
|
||||
return m_pos >= m_data.size();
|
||||
}
|
||||
|
||||
uint8 FileStream::getU8()
|
||||
{
|
||||
uint8 v = 0;
|
||||
|
@@ -45,6 +45,7 @@ public:
|
||||
void skip(uint len);
|
||||
uint size();
|
||||
uint tell();
|
||||
bool eof();
|
||||
std::string name() { return m_name; }
|
||||
|
||||
uint8 getU8();
|
||||
|
Reference in New Issue
Block a user