|
@@ -736,7 +736,10 @@ String AudioStreamRandomizer::get_stream_name() const {
|
|
}
|
|
}
|
|
|
|
|
|
double AudioStreamRandomizer::get_length() 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 {
|
|
bool AudioStreamRandomizer::is_monophonic() const {
|