All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve deRosier <derosier@pianodisc.com>
To: Alsa-Devel <alsa-devel@lists.sourceforge.net>
Subject: usage of snd_seq_queue_status_get_real_time()
Date: Thu, 07 Apr 2005 17:51:24 -0700	[thread overview]
Message-ID: <4255D58C.9010903@pianodisc.com> (raw)

All,

I'm trying to use the snd_seq_queue_status_get_real_time() call to retrieve the current time on the queue so I can compare it to the events I'm pushing into the queue (in order to track down a possible synchronization bug).  But every call I do ends up outputting the same data.

Here's the relevant code snippets:

const snd_seq_real_time_t * CMIDIPort::GetRealQueueTime( void )
{
  snd_seq_queue_status_t * qs;

  snd_seq_queue_status_alloca( &qs );
  snd_seq_get_queue_status( hSeq, mQueue, qs );
  return snd_seq_queue_status_get_real_time( qs );
}

Caller:
// snip
  const snd_seq_real_time_t * CurTime = mMIDIPort.GetRealQueueTime();
  Debugger->DebugMsg( this, "MIDI clock time %d.%d", (int) CurTime->tv_sec, (int) CurTime->tv_nsec );
// snip


and the output:
...
[CAlsaSender | 15:19:22] MIDI clock time 28.-1086326380
[CAlsaSender | 15:19:22] MIDI clock time 28.-1086326380
[CAlsaSender | 15:19:22] MIDI clock time 28.-1086326380
[CAlsaSender | 15:19:35] MIDI clock time 28.-1086326380
[CAlsaSender | 15:19:35] MIDI clock time 28.-1086326380
[CAlsaSender | 15:19:35] MIDI clock time 28.-1086326380
...

I'm sure it's obvious, but I just don't see what the problem is.
/proc/asound/seq/queues shows me the time is continually incrementing.

Thanks,
- Steve



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

             reply	other threads:[~2005-04-08  0:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-08  0:51 Steve deRosier [this message]
2005-04-08  6:54 ` usage of snd_seq_queue_status_get_real_time() Clemens Ladisch
2005-04-08 15:47   ` Steve deRosier
2005-04-11  8:47     ` Clemens Ladisch
2005-04-12 19:15       ` Steve deRosier
2005-04-13  8:10         ` Clemens Ladisch

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=4255D58C.9010903@pianodisc.com \
    --to=derosier@pianodisc.com \
    --cc=alsa-devel@lists.sourceforge.net \
    /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.