Fix bug with AudioStreamPlayer3D audio position
Applies0c78a58b64
to `AudioStreamPlayer3D::play`. (cherry picked from commit330bd686ab
)
This commit is contained in:
parent
12386a2d80
commit
159992f663
|
@ -701,6 +701,11 @@ float AudioStreamPlayer3D::get_pitch_scale() const {
|
||||||
|
|
||||||
void AudioStreamPlayer3D::play(float p_from_pos) {
|
void AudioStreamPlayer3D::play(float p_from_pos) {
|
||||||
|
|
||||||
|
if (!is_playing()) {
|
||||||
|
// Reset the prev_output_count if the stream is stopped
|
||||||
|
prev_output_count = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (stream_playback.is_valid()) {
|
if (stream_playback.is_valid()) {
|
||||||
active = true;
|
active = true;
|
||||||
setplay = p_from_pos;
|
setplay = p_from_pos;
|
||||||
|
|
Loading…
Reference in New Issue