summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorNNesh <mullruslan@yandex.ru>2017-04-25 01:57:05 +0500
committerNNesh <mullruslan@yandex.ru>2017-04-25 01:57:05 +0500
commit0edc3d72087abf4c0c6bbd14c998180de62cd00a (patch)
tree6fdc66fadb504fbe338a83ad6ecad0a5603c55ee /modules
parent8ee991a2a7e9bbcf3c9d1da24cb1ae8754cf4e8f (diff)
Fix AudioPlayer.play() bug when music always starts from 0 pos
Diffstat (limited to 'modules')
-rw-r--r--modules/stb_vorbis/audio_stream_ogg_vorbis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/stb_vorbis/audio_stream_ogg_vorbis.cpp b/modules/stb_vorbis/audio_stream_ogg_vorbis.cpp
index 227e5e61b6..8eb05b4324 100644
--- a/modules/stb_vorbis/audio_stream_ogg_vorbis.cpp
+++ b/modules/stb_vorbis/audio_stream_ogg_vorbis.cpp
@@ -66,8 +66,8 @@ float AudioStreamPlaybackOGGVorbis::get_stream_sampling_rate() {
void AudioStreamPlaybackOGGVorbis::start(float p_from_pos) {
- seek_pos(p_from_pos);
active = true;
+ seek_pos(p_from_pos);
loops = 0;
_begin_resample();
}