Merge pull request #3211 from SaracenOne/audio_stream_pause_fix
Fix delay on audio stream pause
This commit is contained in:
commit
78e5bc8e9a
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue