[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 06/15] jackaudio: use more jack audio buffers
From: |
Volker Rümelin |
Subject: |
[PATCH 06/15] jackaudio: use more jack audio buffers |
Date: |
Thu, 6 Jan 2022 10:23:23 +0100 |
From: Volker Rümelin <vr_qemu@t-online.de>
The next patch reduces the effective qemu playback buffer size
by timer-period. Increase the number of jack audio buffers by
one to preserve the total effective buffer size. The size of one
jack audio buffer is 512 samples. With audio defaults that's
512 samples / 44100 samples/s = 11.6 ms and only slightly larger
than the timer-period of 10 ms.
Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
---
audio/jackaudio.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/audio/jackaudio.c b/audio/jackaudio.c
index e7de6d5433..fe4d9d54c6 100644
--- a/audio/jackaudio.c
+++ b/audio/jackaudio.c
@@ -483,8 +483,8 @@ static int qjack_client_init(QJackClient *c)
c->buffersize = 512;
}
- /* create a 2 period buffer */
- qjack_buffer_create(&c->fifo, c->nchannels, c->buffersize * 2);
+ /* create a 3 period buffer */
+ qjack_buffer_create(&c->fifo, c->nchannels, c->buffersize * 3);
qjack_client_connect_ports(c);
c->state = QJACK_STATE_RUNNING;
--
2.31.1
- [PATCH 13/15] ossaudio: reduce effective playback buffer size, (continued)
- [PATCH 13/15] ossaudio: reduce effective playback buffer size, Volker Rümelin, 2022/01/06
- [PATCH 01/15] audio: replace open-coded buffer arithmetic, Volker Rümelin, 2022/01/06
- [PATCH 04/15] audio: inline function audio_pcm_sw_get_rpos_in(), Volker Rümelin, 2022/01/06
- [PATCH 12/15] dsoundaudio: reduce effective playback buffer size, Volker Rümelin, 2022/01/06
- [PATCH 07/15] audio: copy playback stream in sequential order, Volker Rümelin, 2022/01/06
- [PATCH 02/15] audio: move function audio_pcm_hw_clip_out(), Volker Rümelin, 2022/01/06
- [PATCH 06/15] jackaudio: use more jack audio buffers,
Volker Rümelin <=
- [PATCH 14/15] paaudio: fix samples vs. frames mix-up, Volker Rümelin, 2022/01/06
- [PATCH 10/15] audio: restore mixing-engine playback buffer size, Volker Rümelin, 2022/01/06
- [PATCH 05/15] paaudio: increase default latency to 46ms, Volker Rümelin, 2022/01/06
- [PATCH 15/15] sdlaudio: fix samples vs. frames mix-up, Volker Rümelin, 2022/01/06
- [PATCH 03/15] audio: add function audio_pcm_hw_conv_in(), Volker Rümelin, 2022/01/06
- [PATCH 11/15] paaudio: reduce effective playback buffer size, Volker Rümelin, 2022/01/06
- Re: [PATCH 00/15] reduce audio playback latency, Christian Schoenebeck, 2022/01/09