mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-18 10:21:42 +00:00
Implement SetPosition for OpenAL streams
This commit is contained in:
parent
9c12abeb2d
commit
7f5b538110
1 changed files with 14 additions and 1 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue