Re: [linux-audio-dev] timing

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] timing
From: Paul Davis (pbd_AT_op.net)
Date: Thu Jun 20 2002 - 17:26:50 EEST


>On Thursday 20 June 2002 06:43, dunk fordyce wrote:
>> whats the best way to handle timing in a music app?
>
>I've you're in a Qt environment, there always QTimer, e.g.
>
>QTimer * timer = new QTimer();
>timer->start(interval_in_msec);
>connect(timer,SIGNAL(timeout()),your_widget,SLOT(your_slot)));
>
>You can do one-shots as well. See the Qt docs.

AFAIK, this is totally unreliable. GTK+ has a similar mechanism. it
means that you're integrating timing into the main event loop of the
program; any long lived event handling will stall regular "interrupt"
timing like this.

--p


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Thu Jun 20 2002 - 17:46:27 EEST