aboutsummaryrefslogtreecommitdiff
path: root/scene/audio/stream_player.cpp
diff options
context:
space:
mode:
authorAriel Manzur2015-10-08 12:59:12 -0300
committerAriel Manzur2015-10-08 12:59:12 -0300
commitc2532bffb3f00b8ab84785c1f311d12f65b60f71 (patch)
tree57e7bf1c824a34fee04b32760a40f2c23796a063 /scene/audio/stream_player.cpp
parenta9e68df493292b943240454d0a9b983b1cd82429 (diff)
downloadgodot-c2532bffb3f00b8ab84785c1f311d12f65b60f71.tar.gz
godot-c2532bffb3f00b8ab84785c1f311d12f65b60f71.tar.zst
godot-c2532bffb3f00b8ab84785c1f311d12f65b60f71.zip
Diffstat (limited to 'scene/audio/stream_player.cpp')
-rw-r--r--scene/audio/stream_player.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/audio/stream_player.cpp b/scene/audio/stream_player.cpp
index c4e1ccc9b..0ee9d7661 100644
--- a/scene/audio/stream_player.cpp
+++ b/scene/audio/stream_player.cpp
@@ -67,7 +67,7 @@ bool StreamPlayer::sp_mix(int32_t *p_buffer,int p_frames) {
void StreamPlayer::sp_update() {
- _THREAD_SAFE_METHOD_
+ //_THREAD_SAFE_METHOD_
if (!paused && resampler.is_ready() && playback.is_valid()) {
if (!playback->is_playing()) {
@@ -144,7 +144,7 @@ void StreamPlayer::play(float p_from_offset) {
if (playback->is_playing())
stop();
- _THREAD_SAFE_METHOD_
+ //_THREAD_SAFE_METHOD_
playback->play(p_from_offset);
//feed the ringbuffer as long as no update callback is going on
sp_update();
@@ -162,7 +162,7 @@ void StreamPlayer::stop() {
if (playback.is_null())
return;
- _THREAD_SAFE_METHOD_
+ //_THREAD_SAFE_METHOD_
AudioServer::get_singleton()->stream_set_active(stream_rid,false);
playback->stop();
//set_idle_process(false);