Fix audio stopping on buffer underruns

This commit is contained in:
Eduardo Bart
2012-07-31 00:12:04 -03:00
parent 6c159333dd
commit fbb3c9933a
9 changed files with 51 additions and 11 deletions

View File

@@ -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;

View File

@@ -45,6 +45,7 @@ public:
void skip(uint len);
uint size();
uint tell();
bool eof();
std::string name() { return m_name; }
uint8 getU8();