mirror of
https://github.com/love2d/love.git
synced 2026-08-18 03:34:23 +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:
@@ -59,11 +59,15 @@ public:
|
||||
bool isSeekable();
|
||||
int getChannels() const;
|
||||
int getBitDepth() const;
|
||||
double getDuration();
|
||||
|
||||
private:
|
||||
|
||||
ModPlugFile *plug;
|
||||
ModPlug_Settings settings;
|
||||
|
||||
double duration;
|
||||
|
||||
}; // Decoder
|
||||
|
||||
} // lullaby
|
||||
|
||||
Reference in New Issue
Block a user