[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 03/12] audio: run downstream playback queue unconditionally
From: |
Volker Rümelin |
Subject: |
[PATCH 03/12] audio: run downstream playback queue unconditionally |
Date: |
Fri, 23 Sep 2022 20:36:31 +0200 |
Run the downstream playback queue even if the emulated audio
device didn't write new samples. There still may be buffered
audio samples downstream.
This is for the -audiodev out.mixing-engine=off case. Commit
a8a98cfd42 ("audio: run downstream playback queue uncondition-
ally") fixed the out.mixing-engine=on case.
Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
---
audio/audio.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/audio/audio.c b/audio/audio.c
index 343786243d..9e55834909 100644
--- a/audio/audio.c
+++ b/audio/audio.c
@@ -1143,6 +1143,10 @@ static void audio_run_out (AudioState *s)
hw_free * sw->info.bytes_per_frame);
}
+ if (hw->pcm_ops->run_buffer_out) {
+ hw->pcm_ops->run_buffer_out(hw);
+ }
+
continue;
}
@@ -1501,10 +1505,6 @@ size_t audio_generic_write(HWVoiceOut *hw, void *buf,
size_t size)
}
}
- if (hw->pcm_ops->run_buffer_out) {
- hw->pcm_ops->run_buffer_out(hw);
- }
-
return total;
}
--
2.35.3
- [PATCH 00/12] audio: misc. improvements and bug fixes, Volker Rümelin, 2022/09/23
- [PATCH 02/12] audio: fix GUS audio playback with out.mixing-engine=off, Volker Rümelin, 2022/09/23
- [PATCH 01/12] audio: refactor code in audio_run_out(), Volker Rümelin, 2022/09/23
- [PATCH 05/12] audio: add more audio rate control functions, Volker Rümelin, 2022/09/23
- [PATCH 03/12] audio: run downstream playback queue unconditionally,
Volker Rümelin <=
- [PATCH 11/12] audio: fix sw->buf size for audio recording, Volker Rümelin, 2022/09/23
- [PATCH 10/12] audio: refactor audio_get_avail(), Volker Rümelin, 2022/09/23
- [PATCH 04/12] alsaaudio: reduce playback latency, Volker Rümelin, 2022/09/23
- [PATCH 12/12] audio: prevent an integer overflow in resampling code, Volker Rümelin, 2022/09/23
- [PATCH 07/12] spiceaudio: update comment, Volker Rümelin, 2022/09/23