Merge pull request #105952 from JulianHeuser/AudioStreamRandomizer_return_length
Return the length of the playing stream for AudioStreamRandomizer
This commit is contained in:
commit
3dd03fb33f
1 changed files with 4 additions and 1 deletions
|
|
@ -736,7 +736,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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue