Merge pull request #3211 from SaracenOne/audio_stream_pause_fix

Fix delay on audio stream pause
This commit is contained in:
Rémi Verschelde 2016-01-06 11:54:03 +01:00
commit 78e5bc8e9a
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ void SpatialStreamPlayer::sp_set_mix_rate(int p_rate){
bool SpatialStreamPlayer::sp_mix(int32_t *p_buffer,int p_frames) { bool SpatialStreamPlayer::sp_mix(int32_t *p_buffer,int p_frames) {
if (resampler.is_ready()) { if (resampler.is_ready() && !paused) {
return resampler.mix(p_buffer,p_frames); return resampler.mix(p_buffer,p_frames);
} }

View File

@ -58,7 +58,7 @@ void StreamPlayer::sp_set_mix_rate(int p_rate){
bool StreamPlayer::sp_mix(int32_t *p_buffer,int p_frames) { bool StreamPlayer::sp_mix(int32_t *p_buffer,int p_frames) {
if (resampler.is_ready()) { if (resampler.is_ready() && !paused) {
return resampler.mix(p_buffer,p_frames); return resampler.mix(p_buffer,p_frames);
} }