Fix AudioPlayer.play() bug when music always starts from 0 pos

This commit is contained in:
NNesh 2017-04-25 01:57:05 +05:00
parent 8ee991a2a7
commit 0edc3d7208

View file

@ -66,8 +66,8 @@ float AudioStreamPlaybackOGGVorbis::get_stream_sampling_rate() {
void AudioStreamPlaybackOGGVorbis::start(float p_from_pos) { void AudioStreamPlaybackOGGVorbis::start(float p_from_pos) {
seek_pos(p_from_pos);
active = true; active = true;
seek_pos(p_from_pos);
loops = 0; loops = 0;
_begin_resample(); _begin_resample();
} }