Fix delay on audio stream pause
This commit is contained in:
parent
eca92bb7ac
commit
53b2b0ccbe
|
@ -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