diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-10-13 01:19:32 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-10-13 01:19:32 -0300 |
commit | b3cda43a0fb49e1cb9c8414077a23fa4b61ede38 (patch) | |
tree | 1fee133b2fbc6f2bade96cc9914a449cbb9dbe1e /drivers/speex/audio_stream_speex.cpp | |
parent | 52e756752e1db9e4cf7c5bb7e92d44995ad674c4 (diff) | |
parent | aad2bbdb6fb7c8217d7e75480b38e45f00cb3abd (diff) |
Merge branch 'master' of https://github.com/okamstudio/godot
Conflicts:
platform/windows/detect.py
Diffstat (limited to 'drivers/speex/audio_stream_speex.cpp')
-rw-r--r-- | drivers/speex/audio_stream_speex.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/speex/audio_stream_speex.cpp b/drivers/speex/audio_stream_speex.cpp index 2440969345..1bb4952cc8 100644 --- a/drivers/speex/audio_stream_speex.cpp +++ b/drivers/speex/audio_stream_speex.cpp @@ -22,7 +22,7 @@ int AudioStreamPlaybackSpeex::mix(int16_t* p_buffer,int p_frames) { //printf("update, loops %i, read ofs %i\n", (int)loops, read_ofs); //printf("playing %i, paused %i\n", (int)playing, (int)paused); - if (!active || !playing || paused || !data.size()) + if (!active || !playing || !data.size()) return 0; /* @@ -490,6 +490,8 @@ AudioStreamPlaybackSpeex::AudioStreamPlaybackSpeex() { stream_channels=1; stream_srate=1; stream_minbuff_size=1; + playing=false; + } |