Fix delay on audio stream pause

This commit is contained in:
Saracen 2016-01-03 01:19:37 +00:00
parent eca92bb7ac
commit 53b2b0ccbe
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) {
if (resampler.is_ready()) {
if (resampler.is_ready() && !paused) {
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) {
if (resampler.is_ready()) {
if (resampler.is_ready() && !paused) {
return resampler.mix(p_buffer,p_frames);
}