Implement SetPosition for OpenAL streams

This commit is contained in:
Chris Robinson 2014-06-25 04:59:18 -07:00
parent 9c12abeb2d
commit 7f5b538110

View file

@ -303,8 +303,21 @@ public:
return (getALError()==AL_NO_ERROR);
}
virtual bool SetPosition(unsigned int ms_pos)
{
if(!Decoder->seek(ms_pos))
return false;
alSourceStop(Source);
getALError();
return true;
}
virtual unsigned int GetPosition()
{ return 0; }
{
// FIXME: Decoder position - amount buffered + source offset
return 0;
}
virtual bool IsEnded()
{