Commit Graph

446 Commits

Author SHA1 Message Date
Alexandre Ratchov abfcc198af sync to openbsd 2013-11-14 14:07:20 +01:00
Alexandre Ratchov 3254773ea9 remove only files we generate 2013-11-12 09:51:47 +01:00
Alexandre Ratchov 686dd7065e cleanup namespace 2013-11-12 09:49:28 +01:00
Alexandre Ratchov 37de53fd9b remove legacy server bits 2013-11-12 07:51:02 +01:00
Alexandre Ratchov 075b3da909 fix condition to check if a midi port is referenced 2013-09-28 20:44:50 +02:00
Alexandre Ratchov 5f8c1c9420 remove unused bits 2013-09-14 11:36:38 +02:00
Alexandre Ratchov 73396a2106 crank major, as openbsd did 2013-08-27 08:08:59 +02:00
Alexandre Ratchov 5419334f1e align comments 2013-08-09 13:08:06 +02:00
Alexandre Ratchov 2bbe227870 use .In for includes, remove FILES sections 2013-08-09 12:08:34 +02:00
Alexandre Ratchov 6c33ab75ef fix play vs rec parameters confision 2013-06-03 16:15:56 +02:00
Alexandre Ratchov 6be37c42ee style 2013-06-03 15:48:01 +02:00
Alexandre Ratchov 9ba5076846 drop forgotten debug printf 2013-06-03 13:53:37 +02:00
Alexandre Ratchov bd681ab72d handle poll revents before state changes may occur 2013-06-03 12:55:22 +02:00
Alexandre Ratchov 83cf9a6eb7 fix & reorganize few traces 2013-05-14 11:45:19 +02:00
Alexandre Ratchov 05834decf0 less traces 2013-05-14 11:42:32 +02:00
Alexandre Ratchov edb79c93bc use -q options order as midi/N order 2013-05-12 06:52:10 +02:00
Alexandre Ratchov bd09b46d73 fix samples vs bytes confusion in xrun code-path 2013-05-09 18:03:40 +02:00
Alexandre Ratchov 1129bb8a7b Fix a typo in the condition to check if a midi port is referenced,
causing the port to be closed prematurely
2013-05-09 17:12:13 +02: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 343af5e469 use stddef.h rather than sys/types 2013-05-09 15:28:50 +02:00
Alexandre Ratchov 48fbb54c6a initialize slot rate 2013-05-05 18:19:51 +02:00
Alexandre Ratchov aea7519d93 tabify 2013-04-15 10:42:51 +02:00
Alexandre Ratchov b5f32675fc explain what "default" means in sndio.7 2013-04-12 16:24:59 +02:00
Alexandre Ratchov 8748c853c2 move wsil/rdrop code in sio.c 2013-04-12 16:14:53 +02:00
Alexandre Ratchov 92bec779c0 better debug traces 2013-04-04 16:07:14 +02:00
Alexandre Ratchov 53f43d4df8 typo in comment 2013-04-04 16:01:44 +02:00
Alexandre Ratchov 8e377687b9 fix premature onmove() call-backs 2013-03-19 19:43:49 +01:00
Alexandre Ratchov 280f58c39a don't warn on ECONNABORTED 2013-03-13 09:35:21 +01:00
Alexandre Ratchov ca804a9ffe log successful connections if debug enabled 2013-03-04 08:59:49 +01:00
Alexandre Ratchov 141833dae9 enc/dec buffer size is one stream block, not one device block 2013-02-26 12:18:41 +01:00
Alexandre Ratchov 07bb2c0c95 subdevice -> sub-device 2013-01-06 19:14:55 +01:00
Alexandre Ratchov ffe27f434f add watchdog timeout for bogus devices 2013-01-05 23:21:36 +01:00
Alexandre Ratchov 55c6148e0b don't call revents on zombified files 2013-01-05 16:21:48 +01:00
Alexandre Ratchov 4a42e90267 sort makefile 2012-12-22 13:06:25 +01:00
Alexandre Ratchov 51f6a56e67 use AUDIODEVICE env variable 2012-12-20 20:14:53 +01:00
Alexandre Ratchov 470c3b98b0 style 2012-12-20 20:07:31 +01:00
Alexandre Ratchov 4cf1ce7f8e fix warning & bugs in error code paths 2012-12-20 19:59:11 +01:00
Alexandre Ratchov b7a2c05bf9 add sndioctl to control the volume 2012-12-20 19:38:22 +01:00
Alexandre Ratchov 1301c52ca1 readjust midi flow control after consuming input data 2012-12-20 17:15:00 +01:00
Alexandre Ratchov 68ae9199f6 simple phrasing, from jmc 2012-12-07 09:02:49 +01:00
Alexandre Ratchov eae4dde1d8 don't include defs.h where not needed 2012-12-07 09:00:45 +01:00
Alexandre Ratchov a17e696708 move log_level to utils.c 2012-12-06 15:35:17 +01: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 41372817a0 hide server bits 2012-12-03 17:37:08 +01:00
Alexandre Ratchov eff8e25982 remove misleading XXXs and TODOs 2012-12-01 13:13:57 +01:00
Alexandre Ratchov b3f82753f8 parse mode strings strictly 2012-12-01 13:07:01 +01:00
Alexandre Ratchov 7a76f322eb drain midi port output buffer before closing it ensuring the last
few bytes are not lost
2012-11-30 23:27:36 +01:00
Alexandre Ratchov 0057424c2b use the hold flag for midi ports as well 2012-11-30 22:02:48 +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 ccdecf59c4 When the audio device is closed, mark it as closed before
dropping connections otherwise clients may try to drain their
buffer and would attempt to reopen the device
2012-11-30 21:49:52 +01:00