From: Colin Guthrie <gmane@colin.guthr.ie>
To: pulseaudio-discuss@mail.0pointer.de
Cc: alsa-devel@alsa-project.org
Subject: Re: alsa pulse bugs
Date: Mon, 05 May 2008 10:18:23 +0100 [thread overview]
Message-ID: <fvmjd0$it8$1@ger.gmane.org> (raw)
In-Reply-To: <20080505111126.lhtr3bwyo0sg4wc4@dbservice.com>
tom@dbservice.com wrote:
>> Re the snd_pcm_delay() including network latency (#3945), this clearly
>> makes sense for network streams. Does you proposed fix include this
>> delay (albeit with the improvement that it also will drop to 0 if there
>> are no samples queued)?
>
> snd_pcm_delay() should not include any network latency. The API is
> defined as 'read pointer - write pointer', and applications expect
> that. Or at least they expect that when all samples are played that
> the delay drops to zero.
With the caveat of very limited technical knowledge, I can agree on the
latter point (drop to 0 when all samples are played), but if it was
implemented sans net-delay in pulse would this not cause e.g. a-v sync
issues when playing via alsa to a networked PA server? If so then this
fix would introduce another bug.
>> Also re #3942, I believe (but not sure) that the max buffer in the
>> glitch free branch has been increased significantly (as it now needs to
>> keep some degree of past sound as well as future buffer to allow the
>> rewinds to work properly (this is no doubt an inaccurate description of
>> why it's needed.... :p)) I'm not sure how this would affect this
>> solution, but Lennart will be able to advise better.
>
> I'd suggest to export MAX_MEMBLOCKQ_LENGTH in a public API so that
> applications can make use of it. If the max buffer length has been
> increased, then the alsa pulse plugin should be able to propagate that
> to applications using the alsa API.
Well I'm not sure of the internals of the glitch-free stuff, but I doubt
it's a buffer that can be used in quite the same way as that. Lennart
will be able to advise if I've got the wrong end of the stick in my
comments :)
Col
next prev parent reply other threads:[~2008-05-05 9:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20080505103410.zv8dezd9z44cksoc@dbservice.com>
2008-05-05 8:58 ` alsa pulse bugs Colin Guthrie
2008-05-05 9:11 ` tom
2008-05-05 9:18 ` Colin Guthrie [this message]
2008-05-05 9:37 ` tom
2008-05-05 9:44 ` Colin Guthrie
2008-05-05 10:22 ` tom
2008-05-05 10:31 ` Colin Guthrie
2008-05-06 19:38 ` [pulseaudio-discuss] " Lennart Poettering
[not found] ` <20080506193616.GB25436@tango.0pointer.de>
2008-05-07 1:45 ` Colin Guthrie
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='fvmjd0$it8$1@ger.gmane.org' \
--to=gmane@colin.guthr.ie \
--cc=alsa-devel@alsa-project.org \
--cc=pulseaudio-discuss@mail.0pointer.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox