All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lennart Poettering <mznyfn@0pointer.de>
To: Pieter Palmers <pieterp@joow.be>
Cc: ALSA Development Mailing List <alsa-devel@alsa-project.org>
Subject: Re: Monotonic timestamps
Date: Thu, 10 Apr 2008 16:15:13 +0200	[thread overview]
Message-ID: <20080410141513.GA5852@tango.0pointer.de> (raw)
In-Reply-To: <47FDBBC1.1030500@joow.be>

On Thu, 10.04.08 09:03, Pieter Palmers (pieterp@joow.be) wrote:

> > I find it very strange that ALSA just switches to monotonic timestamps
> > just like that, anyway. Programs written for wallclack timestamps will
> > break if they run on a system where ALSA uses monotonic timestamps!
> > 
> > There's a function missing that enables monotonic timestamps
> > explicitly, or at least one that can be used to query if they are
> > monotonic or not.
> The clean solution would (IMHO) be to have ALSA provide a function to 
> obtain 'current time', thereby making the timestamp system 
> self-contained. Maybe it already does...

This wouldn't help much since timestamps might also come from other
libraries. i.e. being able to relate timestamps from ALSA with
timestamps from the application itself is not enough. They also need
to be relatable to timestamps from other code, which might not
necessarily be linked against ALSA.

i.e. think of gstreamer that uses timestamps attached to each video
frame. Do you really expect gst to move their timestamp source over to
ALSA just because one of the plugins for gst supports ALSA?

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net         ICQ# 11060553
http://0pointer.net/lennart/           GnuPG 0x1A015CC4

  reply	other threads:[~2008-04-10 14:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-09 21:36 Monotonic timestamps Lennart Poettering
2008-04-10  7:03 ` Pieter Palmers
2008-04-10 14:15   ` Lennart Poettering [this message]
2008-04-10 17:20     ` Pieter Palmers
2008-04-10  7:48 ` Jaroslav Kysela
2008-04-10 14:26   ` Lennart Poettering
2008-04-11 12:16     ` Jaroslav Kysela
2008-04-11 12:56       ` Lennart Poettering
2008-04-21 10:47         ` Jaroslav Kysela

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=20080410141513.GA5852@tango.0pointer.de \
    --to=mznyfn@0pointer.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=pieterp@joow.be \
    /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.