Return the length of the playing stream for AudioStreamRandomizer

This commit is contained in:
Julian
2025-04-30 11:20:02 -04:00
parent 32eafc18b4
commit b6a3054323

View File

@ -729,7 +729,10 @@ String AudioStreamRandomizer::get_stream_name() const {
}
double AudioStreamRandomizer::get_length() const {
return 0;
if (!last_playback.is_valid()) {
return 0;
}
return last_playback->get_length();
}
bool AudioStreamRandomizer::is_monophonic() const {