Commit Graph

65 Commits

Author SHA1 Message Date
Alexandre Ratchov 85a1c81bf7 sndiod: Log slot in slot_new() instead of sock_hello(). 2018-06-11 19:57:04 +02:00
Alexandre Ratchov b6f9ea4690 sndiod: Remove unused local variable in sock_hello(). 2018-06-11 19:55:16 +02:00
Alexandre Ratchov 35cff61693 sndiod: Instead of the max, use the number of chans in the slot struct. 2018-06-11 19:55:16 +02:00
Alexandre Ratchov 8be24309cb sndiod: Remove {mix,sub}.slot_cmin, already available un opt struct. 2018-06-11 19:55:16 +02:00
Alexandre Ratchov 5754ba3986 sndiod: Remove dev_{cmin,cmax} from slot struct, use those in opt struct. 2018-06-11 19:54:27 +02:00
Alexandre Ratchov e20bc384e3 sndiod: Don't set constant {slot,dev}_cmin parameters. 2018-06-11 19:53:04 +02:00
Alexandre Ratchov 426a9064fa sndiod: Initialize slot with parameters from the opt struct. 2018-06-11 19:53:02 +02:00
Alexandre Ratchov c42684a889 sndiod: Move opt pointer from the sock to the slot struct. 2018-06-11 19:52:40 +02:00
Alexandre Ratchov 37ee5aa871 sndiod: replace the gloal opt list with per-device lists. 2018-06-10 22:50:35 +02:00
Alexandre Ratchov ee3ef94d5a sndiod: simplify client rate boundary checks 2017-11-30 15:10:02 +01:00
Alexandre Ratchov 5ee0fe28ca add comments in correct code that may look wrong to coverity 2017-07-20 11:06:55 +02:00
Alexandre Ratchov bcb3014206 Fix many typos in comments, from Michael W. Bombardieri <mb at ii.net> 2016-10-27 06:38:21 +02:00
Alexandre Ratchov 8070eb6272 Remove unused arguments of dev_adjpar(), getbasepath() and all
slotops->onvol() implementations.

From David CARLIER <devnexen at gmail.com>. Thanks.
2016-03-23 07:40:46 +01:00
Alexandre Ratchov e22e6a1b26 fix trailing spaces 2016-01-08 17:24:48 +01:00
Alexandre Ratchov 2327821cf0 reset slowaccept upon socket close 2015-12-09 11:24:15 +01:00
Alexandre Ratchov e8007feb00 move the mixer api to a dedicated "mixer" branch 2015-08-28 08:57:47 +02:00
Alexandre Ratchov 8468b9f0a0 rename grp->func 2015-06-04 06:12:38 +02:00
Alexandre Ratchov 905c319315 use strings rather than channel numbers 2015-03-05 10:12:34 +01:00
Alexandre Ratchov 26400ac4de set default xrun mode 2015-01-17 21:08:11 +01:00
Alexandre Ratchov e36de0d10b fix bsd-compat related warnings on linux 2014-12-29 12:55:43 +01:00
Alexandre Ratchov da8108f09a add initial support for audio mixers, disabled by default
ok armani@
2014-07-16 12:05:01 +02:00
Alexandre Ratchov 88648d8f9b unitialize sock->port pointer 2014-06-02 09:43:06 +02:00
Alexandre Ratchov 559d953ef6 backout latest 2014-03-17 17:44:47 +01:00
Alexandre Ratchov d00caaaf96 disable playing and monitoring at the same time and append
slots using MODE_MON at the end of the slot list, so that
data to monitor is produced (by other slots) before the
monitoring slot is consuming it
2014-03-17 09:57:41 +01:00
Alexandre Ratchov af546d3a0f remove unused "delta" argument from onmove callbacks 2014-03-07 11:21:15 +01:00
Alexandre Ratchov 1049e3fa71 remove unused mmc start/stop/relocate call-backs as they don't
make sense for sockets
2014-03-07 11:16:26 +01:00
Alexandre Ratchov e140c92610 remove comment 2014-03-05 21:09:31 +01:00
Alexandre Ratchov f59de2770d check if writable preparing a DATA packet 2014-03-05 20:09:34 +01:00
Alexandre Ratchov 0d773f998a set attach-time delta 2014-02-22 17:22:42 +01:00
Alexandre Ratchov fa0cd74200 use the propoper integer size with AMSG_ISSET 2014-02-08 09:46:13 +01:00
Alexandre Ratchov 65c99cf7c3 round buffer size to nearest possible value 2013-12-31 13:13:04 +01:00
Alexandre Ratchov 1c496e9eab remove forgotten debug bits 2013-12-10 20:02:10 +01:00
Alexandre Ratchov 5c5a7280c2 use 0x7F as dev numer in sysex 2013-12-10 20:00:36 +01:00
Alexandre Ratchov b1c417ab04 add prototypes 2013-11-18 17:50:04 +01:00
Alexandre Ratchov 0f2025bd71 Initialize client rate and channel ranges. Fixes crashes when the
client doesn't set the rate and/or channel ranges. Problem reported
and analyzed by Dimitri Sokolyuk <sokolyuk at gmail.com>. Thanks!
2013-05-09 16:40:16 +02:00
Alexandre Ratchov 9e83398293 set port = NULL for new connctions, fixes crashes
reported by brad
2012-12-06 09:12:00 +01:00
Alexandre Ratchov eff8e25982 remove misleading XXXs and TODOs 2012-12-01 13:13:57 +01:00
Alexandre Ratchov 49190bbba1 For MIDI ports, use the same open/close logic as for audio devices:
drop clients using it when the port is closed (eg. umidi disconnected)
and try to reopen it whenever a new client connects.
2012-11-30 21:51:46 +01:00
Alexandre Ratchov 6cb370c626 fix midithru subscriptions 2012-11-29 18:56:59 +01:00
Alexandre Ratchov 832a0a5a1f add/fix comments 2012-11-11 17:46:21 +01:00
Alexandre Ratchov f33c7044ea don't build messages at the end of sock_in(), since the socket
may be destroyed at this stage
2012-11-11 03:18:23 +01:00
Alexandre Ratchov dc522e703f cleanup debug traces 2012-11-11 01:46:38 +01:00
Alexandre Ratchov 40cf11d689 simplify xmalloc & friends 2012-11-11 00:47:00 +01:00
Alexandre Ratchov 6fa4f57d50 dont write past buffer end, ok armani@ 2012-11-10 22:57:49 +01:00
Alexandre Ratchov 6b88502d9a fix copyright years 2012-11-10 14:58:53 +01:00
Alexandre Ratchov a225f02ed3 ensure ralign is in the [1:round] range 2012-11-07 14:59:00 +01:00
Alexandre Ratchov a00c38b091 make midi_in handle input in a single shot 2012-11-07 11:38:49 +01:00
Alexandre Ratchov b45b76b8e0 dont call sock_read() on the write path; the reader state
is SOCK_RMSG and sock_read() will be called from the poll loop
2012-11-07 09:54:02 +01:00
Alexandre Ratchov a3a868da74 prime buffers with silence; make flow control start with zero
maxwrite
2012-11-07 08:48:35 +01:00
Alexandre Ratchov fffd1b2ad5 use flow control instead of throtteling 2012-11-04 23:07:45 +01:00