Re: [linux-audio-dev] best method for timing

2002-04-16 Thread xk
> I think he meant using it for measuring the time between calls, > in unixes we have gettimeofday for this, but in windows there isnt really any way to do it, since there's no way to get high res timing beyond 10ms. Actually there is (QueryHighPerformanceCounter). It's accuracy it's better that

Re: [linux-audio-dev] best method for timing

2002-04-16 Thread Juan Linietsky
On Wed, 17 Apr 2002 01:14:28 +0200 (CEST) Tim Goetze <[EMAIL PROTECTED]> wrote: > xk wrote: > > >In Windows I use the rdtsc assembler instruction. It returns a 64 bit > >integer (in EAX:EDX I think) which represent the amount of processors cycles > >that have passed from the last reset. Computin

Re: [linux-audio-dev] best method for timing

2002-04-16 Thread Juan Linietsky
On Tue, 16 Apr 2002 09:34:21 -0400 Paul Davis <[EMAIL PROTECTED]> wrote: > >I need to do some timing code - for some basic kind of sequencing.. > >Since ive not written this kind of stuff before, i'm unsure as to the best app > >roach for accurate timing. > > > >I've played around with using sign

Re: [linux-audio-dev] best method for timing

2002-04-16 Thread Tim Goetze
xk wrote: >In Windows I use the rdtsc assembler instruction. It returns a 64 bit >integer (in EAX:EDX I think) which represent the amount of processors cycles >that have passed from the last reset. Computing the difference between two >values and taking into account the freq of the CPU (you have

Re: [linux-audio-dev] best method for timing

2002-04-16 Thread Paul Davis
>one remark on the code paul posted: occasionally interrupts can be >dropped if a higher priority thread is present on your system >(RT audio on a single processor for example); so you cannot just >assume time has advanced by 1 / rtc_frequency seconds per poll >return. the assumption in the cod

Re: [linux-audio-dev] best method for timing

2002-04-16 Thread Paul Davis
>In Windows I use the rdtsc assembler instruction. It returns a 64 bit >integer (in EAX:EDX I think) which represent the amount of processors cycles >that have passed from the last reset. Computing the difference between two >values and taking into account the freq of the CPU (you have to figure i

Re: [linux-audio-dev] best method for timing

2002-04-16 Thread Tim Goetze
Nick D wrote: >On Tue, 16 Apr 2002 09:34:21 -0400 >Paul Davis <[EMAIL PROTECTED]> wrote: > >> >I need to do some timing code - for some basic kind of sequencing.. >> > [..] >> >What approaches have people used, and how successful were they? >> >> poll(2) on /dev/rtc. You will need to be root, or

Re: [linux-audio-dev] best method for timing

2002-04-16 Thread xk
In Windows I use the rdtsc assembler instruction. It returns a 64 bit integer (in EAX:EDX I think) which represent the amount of processors cycles that have passed from the last reset. Computing the difference between two values and taking into account the freq of the CPU (you have to figure it ou

Re: [linux-audio-dev] best method for timing

2002-04-16 Thread Nick D
On Tue, 16 Apr 2002 09:34:21 -0400 Paul Davis <[EMAIL PROTECTED]> wrote: > >I need to do some timing code - for some basic kind of sequencing.. > > [..] > >What approaches have people used, and how successful were they? > > poll(2) on /dev/rtc. You will need to be root, or have CAP_RESOURCE, > t

Re: [linux-audio-dev] [OT] Distributions [was Re:[OT] seriously screwed up Gtk]

2002-04-16 Thread Frank Barknecht
Frank Barknecht hat gesagt: // Frank Barknecht wrote: > And without SuSE I think, ALSA would be as far as it is today. ahm, I meant "wouldn't" of course. -- Frank Barknecht

Re: [linux-audio-dev] best method for timing

2002-04-16 Thread rm
On Tue, Apr 16, 2002 at 01:27:49PM +, Nick D wrote: > Hi all, > > I need to do some timing code - for some basic kind of sequencing.. > Since ive not written this kind of stuff before, i'm unsure as to the best approach >for accurate timing. > > I've played around with using signals for thi

Re: [linux-audio-dev] best method for timing

2002-04-16 Thread Paul Davis
>I need to do some timing code - for some basic kind of sequencing.. >Since ive not written this kind of stuff before, i'm unsure as to the best app >roach for accurate timing. > >I've played around with using signals for this - with setitimer(..) and then c >atching the signal, but it doesnt look

Re: [linux-audio-dev] JACK apps

2002-04-16 Thread Paul Winkler
On Tue, Apr 16, 2002 at 10:25:33AM +0300, Kai Vehmanen wrote: > Did you issue 'guest' as the CVS password? Wow, that's embarassing. Thanks, PW

[linux-audio-dev] best method for timing

2002-04-16 Thread Nick D
Hi all, I need to do some timing code - for some basic kind of sequencing.. Since ive not written this kind of stuff before, i'm unsure as to the best approach for accurate timing. I've played around with using signals for this - with setitimer(..) and then catching the signal, but it doesnt l

Re: [linux-audio-dev] [OT] seriously screwed up Gtk installation ?FOLLOW-UP

2002-04-16 Thread Nick D
On Tue, 16 Apr 2002 11:53:29 +0300 Juhana Sadeharju <[EMAIL PROTECTED]> wrote: > >From:Nick D <[EMAIL PROTECTED]> > > > >Debian is, once you get used to it, probably the best OS in the world! > [ ... ] > >Yeah, the only problem is the 'stable' release is always way too old. > > I have ha

[linux-audio-dev] [OT] Distributions [was Re:[OT] seriously screwed up Gtk]

2002-04-16 Thread Frank Barknecht
Hi Juhana, Juhana Sadeharju hat gesagt: // Juhana Sadeharju wrote: > I have had major problems with Debian: > [installation probs] Well, obviously you have been bitten by installar bugs. They are not acceptable and should be fixed, maybe some of them are already. But you also speak of a weak sp

Re: [linux-audio-dev] [OT] seriously screwed up Gtk installation ?FOLLOW-UP

2002-04-16 Thread Juhana Sadeharju
>From: Nick D <[EMAIL PROTECTED]> > >Debian is, once you get used to it, probably the best OS in the world! [ ... ] >Yeah, the only problem is the 'stable' release is always way too old. I have had major problems with Debian: -Installer started installing from the network, even I had told tha

Re: [linux-audio-dev] JACK apps

2002-04-16 Thread Kai Vehmanen
On Mon, 15 Apr 2002, Paul Winkler wrote: > I want to try ecasound with jack, but I find the 2.1dev7 > tarball won't build with latest jack cvs. Yes, you need the CVS version. 2.1dev8 changelog has grown quite huge, but as I'm still somewhat buried-alive-in-work, I haven't had time to release it