Commit Graph

184 Commits

Author SHA1 Message Date
Alexandre Ratchov ab990cf3ef tweaks from jmc 2012-04-06 09:51:56 +02:00
Alexandre Ratchov 9f12e52145 Fix memory leak in the error handling code path of failed device
creation. From jsg@
2012-04-04 13:33:32 +02:00
Alexandre Ratchov cb82b78c1c Add a simple an clear description of what sndiod does.
Discussed with deraadt and jmc
2012-04-04 13:32:53 +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 2b23e80702 add a master volume knob 2012-03-23 14:32:29 +01:00
Alexandre Ratchov f1b72a401e tweaks from jmc 2012-03-22 09:39:06 +01:00
Alexandre Ratchov 0e45cc33c4 s/transfered/transferred, from tobiasu 2012-03-22 09:38:14 +01:00
Alexandre Ratchov 47288b2d38 switch defaults to 48kHz, 960 frame/block, 8 blocks 2012-03-22 09:32:51 +01:00
Alexandre Ratchov cfdd9671b8 remove unused variables, from Michael W. Bombardieri 2012-01-14 14:14:54 +01:00
Alexandre Ratchov 1949c506b8 Fix the way the mixer figures out which groups of streams have
common channels and thus need to share their dynamic range. Fixes,
unnecessarily decreased volume in some theoretical cases.
2012-01-10 09:12:00 +01:00
Alexandre Ratchov de7dc61de4 hide "device disappeared" messages unless -d is used 2012-01-10 09:11:31 +01:00
Alexandre Ratchov d5ee44fc8b When a sub-device is created (-s), check if a hardware
device was already created (-f) before trying to use the
default one, otherwise all sub-devices end up attached
to the default device. Noticed by peters at schwertfisch.de,
thanks!
2012-01-10 09:11:10 +01:00
Alexandre Ratchov ba61afa867 remove trailing whitespace 2011-12-10 00:02:17 +01:00
Alexandre Ratchov 9916b7362c fix usage 2011-12-10 00:01:58 +01:00
Alexandre Ratchov 073a090888 move server specific bits into new sndiod daemon 2011-12-09 23:49:26 +01:00
Alexandre Ratchov b218a19c35 don't use a server flag, just check if we expose sub-devices 2011-12-02 13:46:03 +01:00
Alexandre Ratchov 37f7cba0f8 reuse midi-control code to implement midi thru boxes and remove
the old midithru implementation; less code, less bugs. As a side
effect, midi output doesn't implement running status "compression"
any more
2011-12-02 11:38:53 +01:00
Alexandre Ratchov a3955999b1 don't add .wav headers to .syx files 2011-12-02 11:37:57 +01:00
Alexandre Ratchov 37baea58d8 move mmc/mtc and volume control bits from struct aproc to struct dev 2011-11-21 09:06:25 +01:00
Alexandre Ratchov a34a843352 prefix device specific messages with the device name.
Mark the device as DEV_CLOSE before closing streams, otherwise
a stream may try to call dev_close() a second time (dev_close() is
in the dev_unref() code path)
2011-11-16 22:31:25 +01:00
Alexandre Ratchov 51ce17cf96 consider two aprocs are intependent if one of them is NULL 2011-11-16 09:04:32 +01:00
Alexandre Ratchov f37ef2f43c make midi owner per-output 2011-11-15 18:06:47 +01:00
Alexandre Ratchov 93a88a471d missing full stop, from jmc 2011-11-15 13:54:53 +01:00
Alexandre Ratchov 73d8f28428 always create a default device in server mode 2011-11-14 09:29:33 +01:00
Alexandre Ratchov dafad3b44a update with new device names 2011-11-14 08:52:48 +01:00
Alexandre Ratchov 1b0a15aba0 better parsetype routine 2011-11-11 10:41:18 +01:00
Alexandre Ratchov 96f647d64d strncmp() can't be used to parse device type, add our own routine 2011-11-10 10:43:31 +01:00
Alexandre Ratchov 4e44c01026 tweaks from jmc 2011-11-09 09:35:18 +01:00
Alexandre Ratchov d41324905f re-add forgotten argument to .Xr 2011-11-08 20:13:39 +01:00
Alexandre Ratchov c8f20fb97f make devnum mandatory 2011-11-08 09:32:00 +01:00
Alexandre Ratchov d0bc800ea8 unbreak alsa 2011-11-03 13:23:17 +01:00
Alexandre Ratchov 7307eeea39 s/mid/thr 2011-11-03 10:08:51 +01:00
Alexandre Ratchov e3e99b1f4e change mandir to prefix/share/man 2011-11-01 18:07:27 +01:00
Alexandre Ratchov 17743923b8 merge obsd man page changes 2011-11-01 18:01:52 +01:00
Alexandre Ratchov c62616c78f check debug_level 2011-11-01 18:01:33 +01:00
Alexandre Ratchov 1d71c4a2fa stop using and duplicating ISSEP() macro 2011-11-01 17:30:39 +01:00
Alexandre Ratchov 33d6a705fd factor device name parsing code 2011-11-01 16:56:37 +01:00
Alexandre Ratchov e4ef0dc8d9 switch to type@hostname,unit/num.opt device names 2011-11-01 13:02:13 +01:00
Alexandre Ratchov dc2884ed7d Don't attempt to send data not available for sending yet. Analysed
and fixed by Remco <remco at d-compu.dyndns.org>, thanks!
2011-10-22 16:29:20 +02:00
Alexandre Ratchov 0e4543ecf5 make -aoff the default 2011-10-20 18:17:48 +02:00
Alexandre Ratchov 284343965f fix getopt duplicate options 2011-10-18 16:22:16 +02:00
Alexandre Ratchov 8c514d82b6 remove midicat 2011-10-18 00:29:58 +02:00
Alexandre Ratchov 4bbfe303b3 typo, from Remco 2011-10-14 13:06:41 +02:00
Alexandre Ratchov 72ac220263 more fixes from jmc 2011-10-13 13:32:32 +02:00
Alexandre Ratchov 4811aac665 sort play and record parameters confusion 2011-10-11 12:56:10 +02:00
Alexandre Ratchov 3a452a4c0d fixes from jmc 2011-10-10 14:19:33 +02:00
Alexandre Ratchov fbba1f101a autovol defaults to 1 2011-10-08 16:06:47 +02:00
Alexandre Ratchov 6e0d4f312e s/tr/mmc 2011-10-05 14:51:05 +02:00
Alexandre Ratchov 48c6dc6585 better dprintfs 2011-10-05 14:14:20 +02:00
Alexandre Ratchov edb571c12e tweaks from jmc 2011-10-05 14:06:44 +02:00