Commit Graph

231 Commits

Author SHA1 Message Date
Alexandre Ratchov 48c6dc6585 better dprintfs 2011-10-05 14:14:20 +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 31909d1dad tweak comment 2011-10-05 13:12:44 +02:00
Alexandre Ratchov 6313d1e2bc check for orphaned -q def 2011-09-07 12:59:20 +02:00
Alexandre Ratchov 1fd5b878fb allow seeking while recording, filling the file with zeros 2011-09-06 08:40:59 +02:00
Alexandre Ratchov a8903f19f0 sync to midish license 2011-08-16 13:03:58 +02:00
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 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 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 306282cb7f initialize wav->pstate 2011-05-06 19:50:19 +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 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 924405f763 fix and add missing "auth" in debug strings 2011-05-01 15:34:21 +02:00
Alexandre Ratchov 134bc5d779 convert messages headers to network byte order to allow
client and server with different byte orders to work
2011-05-01 15:29:56 +02:00
Alexandre Ratchov 52d91a6fa6 remove deadcode, from Michael W. Bombardieri <mb at ii.net> 2011-04-28 09:17:18 +02:00
Alexandre Ratchov 32a1e3d36e use TCP_NODELAY 2011-04-28 08:10:14 +02:00
Alexandre Ratchov ed4ef72326 conf.h needs signal.h 2011-04-28 00:48:24 +02:00
Alexandre Ratchov b0d03532fc use sig_atomic_t in signals 2011-04-28 00:41:43 +02:00
Alexandre Ratchov 5fdf55ede7 move amsg.h on libsndio side 2011-04-28 00:25:20 +02:00
Alexandre Ratchov 8d0497a37b sort env variables, rephrase. From jmc@ 2011-04-27 21:17:27 +02:00
Alexandre Ratchov 0cfe52ec5d typos in comments and man pages 2011-04-18 15:45:12 +02:00
Alexandre Ratchov 9c6c106593 dont include file.h twice 2011-04-18 15:38:48 +02:00
Alexandre Ratchov 7983ad0a92 allow '*' to be used as 'any address' 2011-04-18 15:25:19 +02:00
Alexandre Ratchov 25d5fa236a polish man pages 2011-04-18 15:17:04 +02:00
Alexandre Ratchov 3f1215502b add TCP transport 2011-04-18 12:14:27 +02:00
Alexandre Ratchov 6c7f04bf10 no need to call getpeereid() anymore 2011-04-18 11:25:56 +02:00
Alexandre Ratchov 0663ca6f54 use a cookie for authentication 2011-04-16 18:30:24 +02:00
Alexandre Ratchov 5ad77b9a6f use "aucatN" for aucat(1) socket path and "midicatN" for midicat(1),
no need to increase entropy by inventing new names.
use AUCAT_PATH and MIDICAT_PATH macros instead of hardcoded strings
2011-04-16 14:52:25 +02:00
Alexandre Ratchov fe6209ee49 stop using and remove AMSG_GETCAP message 2011-04-16 13:18:06 +02:00
Alexandre Ratchov 77a2cf5acb use AMSG_DATA's for midi 2011-04-15 18:02:18 +02:00
Alexandre Ratchov 1be9a4da0b reply with a AMSG_STOP to AMSG_STOP and bump version 2011-04-12 10:38:24 +02:00
Alexandre Ratchov 4c12f59a6b grammar fixes from Michael W. Bombardieri; also emphasize stderr, as
most pages do already. From okan@
2011-04-05 17:42:38 +02:00
Alexandre Ratchov 7043f22059 better debug message 2011-03-30 18:41:05 +02:00
Alexandre Ratchov cc6dd11c37 don't print 0xdeadbeef in the WIDLE state 2011-03-30 18:37:18 +02:00
Alexandre Ratchov c70f456e5c call sock_write() at the end of sock_read() in order to send
ACKs, initial positions, volumes and alikes. It's not OK to
call it in sock_execmsg() because it can generate messages
that would be sent before the message to return
2011-03-30 18:28:32 +02:00
Alexandre Ratchov 4e93a1717e clean up cases of ;;
from deraadt@
2011-03-17 08:47:47 +01:00
Alexandre Ratchov eed7d0dc80 use timerclear macro
from okan@
2011-03-17 08:44:37 +01:00
Alexandre Ratchov b050508158 mention -U as global position-independent parameter
from Remco <remco at d-compu.dyndns.org>, thanks!
2011-03-17 08:43:36 +01:00
Alexandre Ratchov 15c8794e5f Terminate midi thru boxes trying to drain but that have no
outputs anymore, otherwise they can't be cleaned up by dev_close()
2010-11-14 14:51:30 +01:00
Alexandre Ratchov 35beeb5513 add a hook to configure precision 2010-11-10 15:08:37 +01:00
Alexandre Ratchov 6b391a082b make default rate a macro instead of using hardcoded 44100 2010-11-10 15:08:05 +01:00
Alexandre Ratchov bc81d0b2ea Add experimental support for 24-bit arithmetic, meaning that full
dynamic range of 24-bit hardware can be used. Offline processing like
mixing and channel mapping is done with 24-bit precision too.
2010-11-05 17:55:42 +01:00
Alexandre Ratchov 2f1ceb6662 unbreak compilation without DEBUG defined 2010-11-05 17:10:19 +01:00
Alexandre Ratchov afe1d1a6c5 Convert ulaw/alaw to native format (ie using ADATA_XXX defines) rather
than s16 (using hardcoded constants). Currently s16 is the native format,
so no behavior change.
2010-11-05 16:29:04 +01:00
Alexandre Ratchov 4ba7c28c93 Replace ``short'' by a new ``adata_t'' typedef corresponding to
audio samples and cleanup ADATA_XXX macros. This allows easilly
switching to 24 bit fixed point arithmetic by simply redefining
the adata_t typedef to int and updating ADATA_XXX macros. No
object change.
2010-11-04 18:56:53 +01:00
Alexandre Ratchov 26c9cecb73 legacy.c is not used anymore 2010-11-03 11:54:29 +01:00
Alexandre Ratchov 1c465cd239 When the end of a stream is reached (ie mix_eof() called) other
possibly blocked streams are processed. If during this phase the end
of another stream is reached then stop the processing because the job
will be already finished by the second stream. Otherwise we may end up
running a destroyed stream.

help from Edward Wandasiewicz <w13ntd at googlemail.com>, thanks
2010-10-22 07:46:17 +02:00
Alexandre Ratchov 6cd91baafa polish comments 2010-10-19 13:07:53 +02:00
Alexandre Ratchov 9ab5fcf177 fix comments 2010-10-18 19:32:52 +02:00
Alexandre Ratchov fa5a65f0d9 cleanup modes, no behaviour change 2010-09-29 15:54:32 +02:00
Alexandre Ratchov 1c76bd2b01 add forgotten ``return NULL'' 2010-09-18 10:37:26 +02:00
Alexandre Ratchov b6981dc359 typo in comments 2010-09-17 10:39:25 +02:00
Alexandre Ratchov 52a88805d0 include grp.h (linux only) in bsd-compat.h rather than in aucat.c 2010-09-17 10:36:54 +02:00
Alexandre Ratchov 3e16dfcd59 add a XXX 2010-09-15 18:27:50 +02:00
Alexandre Ratchov 13d834c5e1 remove unused function mix_prime() 2010-09-15 18:10:29 +02:00
Alexandre Ratchov c7be174526 better error message if getpwnam fails 2010-09-09 08:35:23 +02:00
Alexandre Ratchov 6078ffd6b8 include grp.h, include bsd-compat.h first, since it defines _GNU_SOURCE,
used by other headers
2010-09-03 11:48:32 +02: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