1
0
mirror of https://github.com/ericonr/sndio.git synced 2024-02-18 04:45:21 -06:00
Commit Graph

127 Commits

Author SHA1 Message Date
Alexandre Ratchov
d187c66343 make -u flag per-device similarly to -a and -w 2011-06-29 09:36:03 +02:00
Alexandre Ratchov
736ea055d7 remove debug printfs 2011-06-27 11:50:54 +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
e9f2f3757c tweak 2011-06-20 22:12:50 +02:00
Alexandre Ratchov
96eb11eaf9 make -a per-device, it doesn't make sense to be per-midi-port since
if one port is open, then all ports must be opened.
2011-06-20 18:17:11 +02:00
Alexandre Ratchov
007a5ce2e1 make -a apply on MIDI ports 2011-06-20 17:53:09 +02:00
Alexandre Ratchov
9429404049 one midicat server can export multiple midithru ports 2011-06-03 20:58:04 +02:00
Alexandre Ratchov
1b055c6da6 don't forget to send the initial clock tick 2011-06-03 20:14:07 +02:00
Alexandre Ratchov
f945cd7996 Allow device encoding to be set if -u is also used. Useful to degrade
quality to save bandwith when a remote audio device is used.
2011-06-03 19:08:15 +02:00
Alexandre Ratchov
0778d29b61 factor tests for f->opt->join flag, no behaviour change 2011-06-03 18:47:34 +02:00
Alexandre Ratchov
489fe436c3 Clarify that the ratio between sample rate and the block size
is the MTC clock rate. Suggested by Alexey Suslikov
2011-06-03 18:20:51 +02:00
Alexandre Ratchov
fc036bc26e Reorganize the way command line options are parsed and stored.
No behaviour change.
2011-06-03 12:05:47 +02:00
Alexandre Ratchov
0101028663 update EXAMPLES to use "-joff", since "-jon" is the default
found by peters at schwertfisch.de, thanks
2011-06-03 11:07:16 +02:00
Alexandre Ratchov
2d6fc0ec68 close midi control ports and thruboxes only if there are no inputs
anymore
2011-06-02 20:48:31 +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
c7037f95a6 tweaks from jmc 2011-05-26 16:16:47 +02:00
Alexandre Ratchov
9239ff30b8 clarify -v 2011-05-26 11:15:54 +02:00
Alexandre Ratchov
638b66d498 make clipping less ugly 2011-05-26 09:45:07 +02:00
Alexandre Ratchov
af674f331b rephrase -w definition 2011-05-26 08:57:55 +02:00
Alexandre Ratchov
734a5b1645 postion -> position, from jmc 2011-05-23 17:31:00 +02:00
Alexandre Ratchov
2f94e45ccd add random_bytes() function, used when arc4random() is not available 2011-05-23 13:40:50 +02:00
Alexandre Ratchov
02f3853786 add -w option to switch off automatic volume adjustments 2011-05-13 13:38:34 +02:00
Alexandre Ratchov
a6816c6fa5 fix option handling and enable TCP in midicat
from peters at schwertfisch.de, thanks!
2011-05-10 11:49:54 +02:00
Alexandre Ratchov
c4c6839064 add a sysex.h header with all sysex messages and
expose new dumpreq, dumpend and mixinfo
2011-05-09 19:40:34 +02:00
Alexandre Ratchov
1b9b1c16b8 decrease SIO_MAXNFDS to what alsa needs 2011-05-09 19:29:04 +02:00
Alexandre Ratchov
6b44a56017 use "period event" for recording
allocate paramters on the stack in sio_alsa_setpar()
2011-05-07 19:56:25 +02:00
Alexandre Ratchov
ef2dda9f91 dont use INFTIM, not available on linux 2011-05-07 14:12:47 +02:00
Alexandre Ratchov
b0d4ec71f5 add example programs 2011-05-07 14:08:45 +02:00
Alexandre Ratchov
90905eea06 remove COMPAT_PACKED 2011-05-07 01:43:44 +02:00
Alexandre Ratchov
67ac528d10 handle EAGAIN, link in sio_start() and unlink in sio_stop() 2011-05-07 01:32:20 +02:00
Alexandre Ratchov
c7fa24cb75 handle the case nfds > 1 2011-05-06 20:04:34 +02:00
Alexandre Ratchov
306282cb7f initialize wav->pstate 2011-05-06 19:50:19 +02:00
Alexandre Ratchov
8e920de252 link the .so file with -lasound, otherwise we get the
wrong alsa library
2011-05-06 19:15:16 +02:00
Alexandre Ratchov
8e25c4c95f include "bsd-compat.h" unconditionally 2011-05-06 14:11:18 +02:00
Alexandre Ratchov
0bba66304b simplify compat bits 2011-05-06 13:40:39 +02:00
Alexandre Ratchov
5f53917840 remove getpeereid 2011-05-06 13:12:01 +02:00
Alexandre Ratchov
68f6173228 add -DSTRLCAT option 2011-05-06 12:50:17 +02:00
Alexandre Ratchov
8d6ff70519 connect to the build strlcat 2011-05-06 12:48:47 +02:00
Alexandre Ratchov
9e553c03a8 import strlcat 2011-05-06 12:47:34 +02:00
Alexandre Ratchov
6a44b85b6c verify prefix length 2011-05-06 12:17:33 +02:00
Alexandre Ratchov
32be87eead make the code shorter: use an array of backend structures and
iterate over it rather than inlining calls to sio_<backend>_open
2011-05-06 12:14:48 +02:00
Alexandre Ratchov
681cac6593 don't read past the cookie end 2011-05-06 12:12:25 +02:00
Alexandre Ratchov
190f1913a1 drop support for lagacy device names 2011-05-04 09:14:43 +02:00
Alexandre Ratchov
7c836dac01 move default device handling in backend code 2011-05-03 22:07:30 +02:00
Alexandre Ratchov
11699e1db3 rename "hw" -> "alsa" 2011-05-03 21:50:54 +02:00
Alexandre Ratchov
1cda5b83e3 replace '*' -> '-' as address to listen to and document it 2011-05-03 21:36:52 +02:00
Alexandre Ratchov
e76f856e7a tweaks from jmc 2011-05-03 09:10:45 +02:00
Alexandre Ratchov
ceeca19277 remove unused defs (recommit) 2011-05-01 15:39:29 +02:00
Alexandre Ratchov
924405f763 fix and add missing "auth" in debug strings 2011-05-01 15:34:21 +02:00