mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +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:
@@ -93,6 +93,7 @@ public:
|
||||
void softRewind(Source *source);
|
||||
void seek(Source *source, float offset, void *unit);
|
||||
float tell(Source *source, void *unit);
|
||||
double getDuration(Source *source, void *unit);
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user