From: Markus Armbruster <armbru@redhat.com>
To: marcandre.lureau@redhat.com
Cc: qemu-devel@nongnu.org, Gerd Hoffmann <kraxel@redhat.com>,
Eric Blake <eblake@redhat.com>
Subject: Re: [PATCH] dbus: add -audio dbus nsamples option
Date: Wed, 05 Feb 2025 09:33:43 +0100 [thread overview]
Message-ID: <87msf04wpk.fsf@pond.sub.org> (raw)
In-Reply-To: <20250128120559.729221-1-marcandre.lureau@redhat.com> (marcandre lureau's message of "Tue, 28 Jan 2025 16:05:59 +0400")
marcandre.lureau@redhat.com writes:
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
>
> Allow to set the number of audio samples per read/write to dbus.
>
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
> qapi/audio.json | 22 +++++++++++++++++++++-
> audio/dbusaudio.c | 21 ++++++++++++++++++---
> ui/dbus-display1.xml | 12 ++++++++++++
> 3 files changed, 51 insertions(+), 4 deletions(-)
>
> diff --git a/qapi/audio.json b/qapi/audio.json
> index 519697c0cd..dd5a58d13e 100644
> --- a/qapi/audio.json
> +++ b/qapi/audio.json
> @@ -65,6 +65,26 @@
> '*in': 'AudiodevPerDirectionOptions',
> '*out': 'AudiodevPerDirectionOptions' } }
>
> +##
> +# @AudiodevDBusOptions:
> +#
> +# Options of the D-Bus audio backend.
> +#
> +# @in: options of the capture stream
> +#
> +# @out: options of the playback stream
> +#
> +# @nsamples: set the number of samples per read/write calls (default to 480,
> +# 10ms at 48kHz).
Markup error. This is rendered like
"nsamples": "int" (optional)
set the number of samples per read/write calls (default to 480,
10ms at 48kHz).
Fix:
# @nsamples: set the number of samples per read/write calls
# (default to 480, 10ms at 48kHz).
I'm not sure I understand the parenthesis. I guess it means default
value is 480 samples per read/write call, which translates to 10ms when
sampling at 48kHz. Correct?
> +#
> +# Since: 10.0
> +##
> +{ 'struct': 'AudiodevDBusOptions',
> + 'data': {
> + '*in': 'AudiodevPerDirectionOptions',
> + '*out': 'AudiodevPerDirectionOptions',
> + '*nsamples': 'uint32'} }
> +
Could use 'base': 'AudiodevGenericOptions' instead of duplicating @in
and @out, but that would deviate from all the other AudiodevFOOOptions.
I agree with your decision.
> ##
> # @AudiodevAlsaPerDirectionOptions:
> #
> @@ -490,7 +510,7 @@
> 'if': 'CONFIG_AUDIO_ALSA' },
> 'coreaudio': { 'type': 'AudiodevCoreaudioOptions',
> 'if': 'CONFIG_AUDIO_COREAUDIO' },
> - 'dbus': { 'type': 'AudiodevGenericOptions',
> + 'dbus': { 'type': 'AudiodevDBusOptions',
> 'if': 'CONFIG_DBUS_DISPLAY' },
> 'dsound': { 'type': 'AudiodevDsoundOptions',
> 'if': 'CONFIG_AUDIO_DSOUND' },
[...]
next prev parent reply other threads:[~2025-02-05 8:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-28 12:05 [PATCH] dbus: add -audio dbus nsamples option marcandre.lureau
2025-02-05 8:33 ` Markus Armbruster [this message]
2025-02-05 9:41 ` Marc-André Lureau
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=87msf04wpk.fsf@pond.sub.org \
--to=armbru@redhat.com \
--cc=eblake@redhat.com \
--cc=kraxel@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=qemu-devel@nongnu.org \
/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.