[linux-audio-dev] mini Review: Re: [Jackit-devel] latest CVS commit

Roger Larsson roger.larsson at norran.net
Tue Dec 2 01:07:25 UTC 2003


On Monday 01 December 2003 20.48, Paul Davis wrote:

> i'd appreciate test reports ASAP, so that out trusty release
> technician (the very wonderful taybin rutkin) can get a new release
> out in the near future.
>

alsa_driver.c

	driver->period_usecs =
		(jack_time_t) floor ((((float) driver->frames_per_cycle) /
				      driver->frame_rate) * 1000000.0f);

jackd/engine.c
	poll_timeout = (engine->control->real_time == 0 ?
			engine->client_timeout_msecs :
			engine->driver->period_usecs/1000);

	- - -

	if (poll (pfd, 1, poll_timeout) < 0) {

Isn't this dangerous?
* What happens if period_usecs < 1000?
  Well poll_timeout gets 0 since period_usecs is an uint64_t
  A poll with time out of zero will return immediately.
  OK?

/RogerL


-- 
Roger Larsson
Skellefteå
Sweden




More information about the Linux-audio-dev mailing list