All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Schoenebeck <qemu_oss@crudebyte.com>
To: qemu-devel@nongnu.org
Cc: "Volker Rümelin" <vr_qemu@t-online.de>,
	"Gerd Hoffmann" <kraxel@redhat.com>
Subject: Re: [PATCH v2 06/15] jackaudio: use more jack audio buffers
Date: Sun, 23 Jan 2022 18:51:34 +0100	[thread overview]
Message-ID: <2091711.ThPptIsUb9@silver> (raw)
In-Reply-To: <20220122125745.5037-6-vr_qemu@t-online.de>

On Samstag, 22. Januar 2022 13:57:36 CET Volker Rümelin wrote:
> 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.
> 
> The larger jack audio buffer increases audio dropout safety,
> because the high priority jack-audio worker threads can provide
> audio data for a longer period of time as with a smaller buffer
> and more audio data in the mixing engine buffer that they can't
> access.
> 
> Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>

Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com>

> ---
>  audio/jackaudio.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/audio/jackaudio.c b/audio/jackaudio.c
> index 317009e936..26246c3a8b 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;





  reply	other threads:[~2022-01-23 17:52 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-22 12:52 [PATCH v2 00/15] reduce audio playback latency Volker Rümelin
2022-01-22 12:57 ` [PATCH v2 01/15] audio: replace open-coded buffer arithmetic Volker Rümelin
2022-01-23 17:40   ` Christian Schoenebeck
2022-01-25 18:57     ` Volker Rümelin
2022-01-26  8:48       ` Gerd Hoffmann
2022-03-01 18:59         ` Volker Rümelin
2022-01-26 12:01       ` Christian Schoenebeck
2022-01-22 12:57 ` [PATCH v2 02/15] audio: move function audio_pcm_hw_clip_out() Volker Rümelin
2022-01-22 12:57 ` [PATCH v2 03/15] audio: add function audio_pcm_hw_conv_in() Volker Rümelin
2022-01-22 12:57 ` [PATCH v2 04/15] audio: inline function audio_pcm_sw_get_rpos_in() Volker Rümelin
2022-01-22 12:57 ` [PATCH v2 05/15] paaudio: increase default latency to 46ms Volker Rümelin
2022-01-22 12:57 ` [PATCH v2 06/15] jackaudio: use more jack audio buffers Volker Rümelin
2022-01-23 17:51   ` Christian Schoenebeck [this message]
2022-01-22 12:57 ` [PATCH v2 07/15] audio: copy playback stream in sequential order Volker Rümelin
2022-01-22 12:57 ` [PATCH v2 08/15] audio: add pcm_ops function table for capture backend Volker Rümelin
2022-01-22 12:57 ` [PATCH v2 09/15] Revert "audio: fix wavcapture segfault" Volker Rümelin
2022-01-22 12:57 ` [PATCH v2 10/15] audio: restore mixing-engine playback buffer size Volker Rümelin
2022-01-22 12:57 ` [PATCH v2 11/15] paaudio: reduce effective " Volker Rümelin
2022-01-22 12:57 ` [PATCH v2 12/15] dsoundaudio: " Volker Rümelin
2022-01-22 12:57 ` [PATCH v2 13/15] ossaudio: " Volker Rümelin
2022-01-22 12:57 ` [PATCH v2 14/15] paaudio: fix samples vs. frames mix-up Volker Rümelin
2022-01-22 12:57 ` [PATCH v2 15/15] sdlaudio: " Volker Rümelin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2091711.ThPptIsUb9@silver \
    --to=qemu_oss@crudebyte.com \
    --cc=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=vr_qemu@t-online.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.