mirror of
https://github.com/love2d/love.git
synced 2026-08-18 19:54:22 +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:
@@ -142,6 +142,11 @@ int GmeDecoder::getBitDepth() const
|
||||
return 16;
|
||||
}
|
||||
|
||||
double GmeDecoder::getDuration()
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
} // lullaby
|
||||
} // sound
|
||||
} // love
|
||||
|
||||
Reference in New Issue
Block a user