mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
Added Source:getDuration (thanks Boolsheet!)
For streaming sources, the duration may not always be sample-accurate and may return -1 if it cannot be determined at all.
This commit is contained in:
@@ -112,6 +112,11 @@ float Source::tell(Source::Unit)
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
double Source::getDuration(Unit)
|
||||
{
|
||||
return -1.0f;
|
||||
}
|
||||
|
||||
void Source::setPosition(float *)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user