Fix AudioStreamPlayer.get_playback_position() always returning 0 when using AudioStreamInteractive
This commit is contained in:
parent
32239d477b
commit
5255fe8fec
1 changed files with 4 additions and 0 deletions
|
@ -1018,6 +1018,10 @@ int AudioStreamPlaybackInteractive::get_loop_count() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
double AudioStreamPlaybackInteractive::get_playback_position() const {
|
double AudioStreamPlaybackInteractive::get_playback_position() const {
|
||||||
|
if (playback_current != -1) {
|
||||||
|
const State ¤t_state = states[playback_current];
|
||||||
|
return current_state.playback->get_playback_position();
|
||||||
|
}
|
||||||
return 0.0;
|
return 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue