Commit Graph

92 Commits

Author SHA1 Message Date
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
Alexandre Ratchov 2834345924 make DEV_xxx contiguous 2012-11-30 21:49:29 +01:00
Alexandre Ratchov 6cb370c626 fix midithru subscriptions 2012-11-29 18:56:59 +01:00
Alexandre Ratchov 2fd21c86fb space required between macro args and punctuation; from jmc@ 2012-11-23 10:00:38 +01:00
Alexandre Ratchov 1081d7208a add a dummy -M for compatibility with aucat 2012-11-23 08:25:58 +01:00
Alexandre Ratchov 32bd2a8953 use IPV6_V6ONLY 2012-11-19 00:13:19 +01:00
Alexandre Ratchov 7027fdf46c dont call revents twice 2012-11-12 18:05:55 +01:00
Alexandre Ratchov d899b0d484 remove few Xr's 2012-11-11 18:58:38 +01:00
Alexandre Ratchov 57322d54cf add/fix yet more comments 2012-11-11 17:51:27 +01:00
Alexandre Ratchov f6df08e0c3 add/fix more comments 2012-11-11 17:47:48 +01:00
Alexandre Ratchov 832a0a5a1f add/fix comments 2012-11-11 17:46:21 +01:00
Alexandre Ratchov e43d03b3df tweak comment 2012-11-11 10:49:03 +01:00
Alexandre Ratchov c875716078 ignored clock delta -> log_level 2 2012-11-11 10:42:47 +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 0203d4d00b remove dsp debug traces 2012-11-11 01:01:50 +01:00
Alexandre Ratchov 40cf11d689 simplify xmalloc & friends 2012-11-11 00:47:00 +01:00
Alexandre Ratchov ca6e1699f3 set default volume to -3dB 2012-11-11 00:26:33 +01:00
Alexandre Ratchov 40174ce175 dev_mix_setmaster -> dev_mix_adjvol 2012-11-11 00:21:34 +01:00
Alexandre Ratchov 12a200c18a readjust volumes when a stream is detached 2012-11-11 00:20:39 +01:00
Alexandre Ratchov b04a783fd8 free in slot_detach() memory allocated in slot_attach() 2012-11-11 00:01:52 +01:00
Alexandre Ratchov b55ceed719 better debug traces 2012-11-10 22:58:47 +01:00
Alexandre Ratchov 1ff4add221 get a reference to the device in pure mtc mode, ok armani@ 2012-11-10 22:58:29 +01:00
Alexandre Ratchov 6fa4f57d50 dont write past buffer end, ok armani@ 2012-11-10 22:57:49 +01:00
Alexandre Ratchov c69d0ebe10 -mmon uses -C args as channels to snoop 2012-11-10 16:28:24 +01:00
Alexandre Ratchov 3e17fc5717 fix wrong assert in slot_detach(), ok armani@ 2012-11-10 16:04:12 +01:00
Alexandre Ratchov 6b88502d9a fix copyright years 2012-11-10 14:58:53 +01:00
Alexandre Ratchov b4f76f12ef disable asserts hidden in aucat 2012-11-08 08:11:50 +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 be643dd0ef set (unused) midi fill method 2012-11-06 12:37:50 +01:00
Alexandre Ratchov fffd1b2ad5 use flow control instead of throtteling 2012-11-04 23:07:45 +01:00
Alexandre Ratchov 2b55c6e659 tweak comments 2012-11-04 11:36:13 +01:00
Alexandre Ratchov cd8a3a6075 mem_alloc -> xmalloc 2012-11-03 18:09:50 +01:00
Alexandre Ratchov 5142109f22 make file i/o able to cross fifo bundary 2012-11-03 17:30:30 +01:00
Alexandre Ratchov 5fddbed369 make abuf structure use bytes 2012-11-02 19:05:29 +01:00
Alexandre Ratchov f2c1c70165 restart xfers when we get more tickets 2012-11-02 17:26:10 +01:00
Alexandre Ratchov fc38a92505 miofile -> port_mio 2012-11-02 15:58:34 +01:00
Alexandre Ratchov 8bdc288d6b fix leak: free s->mix.{decbuf,resampbuf} 2012-11-02 14:33:28 +01:00
Alexandre Ratchov fe60df1e1f remove unused #includes 2012-11-02 14:21:43 +01:00
Alexandre Ratchov 285549a2fb check that we run dev_cycle at block boundary 2012-11-02 14:15:24 +01:00
Alexandre Ratchov 22b132cf3a inline dev_sio_{read,write} since they are called only once 2012-11-02 13:39:06 +01:00
Alexandre Ratchov 532e76198c in siofile, use struct dev directly 2012-11-02 13:19:35 +01:00
Alexandre Ratchov d0d0d0ee32 s/state/cstate 2012-11-02 12:48:50 +01:00
Alexandre Ratchov a9dad9889f rename STATE_xxx to SIOFILE_xxx 2012-11-02 12:48:10 +01:00
Alexandre Ratchov e22f44cdfa move siofile structure into struct dev 2012-11-02 12:43:43 +01:00
Alexandre Ratchov 26bf90b89d use gnu autoconf style HAVE_XXX macros 2012-10-29 18:08:36 +01:00