Renamed InputStream::GetPosition to InputStream::Tell (more consistent naming)
This commit is contained in:
parent
aada9ca545
commit
3d4bb1f568
3 changed files with 7 additions and 7 deletions
|
@ -380,7 +380,7 @@ sf_count_t SoundFile::Stream::Seek(sf_count_t offset, int whence, void* userData
|
|||
switch (whence)
|
||||
{
|
||||
case SEEK_SET : return stream->Seek(offset);
|
||||
case SEEK_CUR : return stream->Seek(stream->GetPosition() + offset);
|
||||
case SEEK_CUR : return stream->Seek(stream->Tell() + offset);
|
||||
case SEEK_END : return stream->Seek(stream->GetSize() - offset);
|
||||
default : return stream->Seek(0);
|
||||
}
|
||||
|
@ -391,7 +391,7 @@ sf_count_t SoundFile::Stream::Seek(sf_count_t offset, int whence, void* userData
|
|||
sf_count_t SoundFile::Stream::Tell(void* userData)
|
||||
{
|
||||
sf::InputStream* stream = static_cast<sf::InputStream*>(userData);
|
||||
return stream->GetPosition();
|
||||
return stream->Tell();
|
||||
}
|
||||
|
||||
} // namespace priv
|
||||
|
|
|
@ -61,12 +61,12 @@ namespace
|
|||
void Skip(void* user, unsigned int size)
|
||||
{
|
||||
sf::InputStream* stream = static_cast<sf::InputStream*>(user);
|
||||
stream->Seek(stream->GetPosition() + size);
|
||||
stream->Seek(stream->Tell() + size);
|
||||
}
|
||||
int Eof(void* user)
|
||||
{
|
||||
sf::InputStream* stream = static_cast<sf::InputStream*>(user);
|
||||
return stream->GetPosition() >= stream->GetSize();
|
||||
return stream->Tell() >= stream->GetSize();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue