qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Marc-André Lureau" <marcandre.lureau@redhat.com>
To: Markus Armbruster <armbru@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, 5 Feb 2025 13:41:25 +0400	[thread overview]
Message-ID: <CAMxuvayvp4N9K7TTGzTFvb1Yi1WejbBFQviG7Em9UOJAwkmT6A@mail.gmail.com> (raw)
In-Reply-To: <87msf04wpk.fsf@pond.sub.org>

Hi

On Wed, Feb 5, 2025 at 12:33 PM Markus Armbruster <armbru@redhat.com> wrote:
>
> 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).
>

ack, could you send a patch?

> 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?

correct, feel free to improve the wording.

> > +#
> > +# 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' },
>
> [...]
>



      reply	other threads:[~2025-02-05  9:42 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
2025-02-05  9:41   ` Marc-André Lureau [this message]

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=CAMxuvayvp4N9K7TTGzTFvb1Yi1WejbBFQviG7Em9UOJAwkmT6A@mail.gmail.com \
    --to=marcandre.lureau@redhat.com \
    --cc=armbru@redhat.com \
    --cc=eblake@redhat.com \
    --cc=kraxel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).