qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [RESEND PATCH 2/3] pulseaudio: setup buffer attrs
Date: Tue, 25 Jan 2011 12:05:43 +0100	[thread overview]
Message-ID: <4D3EAE87.7040908@redhat.com> (raw)
In-Reply-To: <20110125092020.GB5940@playa.tlv.redhat.com>

   Hi,

> What's the default buffer size?

Don't know the exact number, but pulse's default buffer size is quite 
big by design.  Which is fine for most apps (such as mp3 players) where 
loading more sound data into the buffer every second or so is ok.  It 
doesn't work very well for sound card emulation though.  And it doesn't 
work at all if your guest happens to use a ring buffer which holds sound 
data for only 20ms.

 > Is there any reason to query this on startup
 > somewhere instead of hard coding it?

No.  The pulse default values will never ever work for qemu's low 
latency requirements.

cheers,
   Gerd

  reply	other threads:[~2011-01-25 11:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-24 21:07 [Qemu-devel] [RESEND PATCH 1/3] pulseaudio: process 1/4 buffer max at once Gerd Hoffmann
2011-01-24 21:07 ` [Qemu-devel] [RESEND PATCH 2/3] pulseaudio: setup buffer attrs Gerd Hoffmann
2011-01-25  9:20   ` Alon Levy
2011-01-25 11:05     ` Gerd Hoffmann [this message]
2011-01-24 21:07 ` [Qemu-devel] [RESEND PATCH 3/3] pulseaudio: tweak config Gerd Hoffmann
2011-01-25 16:57 ` [Qemu-devel] Re: [RESEND PATCH 1/3] pulseaudio: process 1/4 buffer max at once malc

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=4D3EAE87.7040908@redhat.com \
    --to=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).