summaryrefslogtreecommitdiff
path: root/scene/audio/stream_player.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-10-19 18:47:49 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-10-19 18:47:49 -0300
commit5d86a25f4d04b21559f0d4edbd4e70dc01ea6685 (patch)
tree03e6ee4dd475501df480858b82dea1ad5efeb21c /scene/audio/stream_player.cpp
parent79e5ced7e668fa53567ac6aaf5a26393cea6c9a2 (diff)
-some fixes to where screen is read from rasterizer
-fixed bug in ogg vorbis looping -properly flushing audiostream rb when stopping
Diffstat (limited to 'scene/audio/stream_player.cpp')
-rw-r--r--scene/audio/stream_player.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/audio/stream_player.cpp b/scene/audio/stream_player.cpp
index 0ee9d76611..bffb2de4d4 100644
--- a/scene/audio/stream_player.cpp
+++ b/scene/audio/stream_player.cpp
@@ -165,6 +165,8 @@ void StreamPlayer::stop() {
//_THREAD_SAFE_METHOD_
AudioServer::get_singleton()->stream_set_active(stream_rid,false);
playback->stop();
+ resampler.flush();
+
//set_idle_process(false);
}