Commit Graph

11 Commits

Author SHA1 Message Date
Alexandre Ratchov b1c417ab04 add prototypes 2013-11-18 17:50:04 +01:00
Alexandre Ratchov 1247c187a7 s/unsigned/unsigned int/g, requested by deraadt 2012-04-11 09:21:29 +02:00
Alexandre Ratchov 2d72ee38d1 Don't spin if accept() fails because it is out of file descriptors,
instead set a flag that skips the listening socket from the poll()
event loop. The flag is cleared whenever a file descriptor is closed
allowing accept() to be retried.
Explained by deraadt@
2012-03-29 22:13:49 +02:00
Alexandre Ratchov 71980f4d34 Cleanup:
- stream definitions (-ios) now must follow devices definitions they
  are attached to (-fMn).
- the -n option is now a special "loopback" device and is thus used
  like -f, eg it must precede streams
- channel numbers (-Cc options) correspond always to channel numbers
  of the hardware.
- removed -u option (not needed anymore)
2011-10-05 13:21:01 +02:00
Alexandre Ratchov 534383ee5c expose CPU usage, ie the time spent on calculations compared
to the time spend on sleeping in poll()
2011-06-27 09:10:58 +02:00
Alexandre Ratchov 4667f82af0 don't exit from the main loop if there are pending time outs.
Fixes midi inputs not being properly drained when they are
temporarily blocked to limit input data rate
2011-06-02 19:37:49 +02:00
Alexandre Ratchov 0602f18759 If there are no descriptors to poll, just sleep until SIGALRM
is posted and then update all timers restart the event loop.
Fixes throtteling while midi inputs are drained.
2011-06-02 18:08:58 +02:00
Alexandre Ratchov eed7d0dc80 use timerclear macro
from okan@
2011-03-17 08:44:37 +01:00
Alexandre Ratchov 2f1ceb6662 unbreak compilation without DEBUG defined 2010-11-05 17:10:19 +01:00
Alexandre Ratchov a17607cf7a add initial alsa support from jakemsr 2010-08-19 23:00:06 +02:00
Alexandre Ratchov f268454989 import from OpenBSD 2010-08-19 22:38:45 +02:00