Commit Graph

41 Commits

Author SHA1 Message Date
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 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 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 e43d03b3df tweak comment 2012-11-11 10:49:03 +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 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 1ff4add221 get a reference to the device in pure mtc mode, ok armani@ 2012-11-10 22:58:29 +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 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 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 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 532e76198c in siofile, use struct dev directly 2012-11-02 13:19:35 +01:00
Alexandre Ratchov e22f44cdfa move siofile structure into struct dev 2012-11-02 12:43:43 +01:00
Alexandre Ratchov d2102db943 free() slot conversion & resampling buffers 2012-10-29 14:18:48 +01:00
Alexandre Ratchov ea0d66a62d add explicit flow control in the protocol and use it for both midi and audio 2012-10-24 12:45:13 +02:00
Alexandre Ratchov c3b7829b02 better debug traces 2012-10-16 09:45:53 +02:00
Alexandre Ratchov e7b81ffcd0 free buffers in dev_close(), delete midi port in dev_del() 2012-10-15 18:53:38 +02:00
Alexandre Ratchov 61c00bcef2 close the device only if it's opened 2012-10-15 18:19:07 +02:00
Alexandre Ratchov 792b22dc90 log slot details only if its allocated 2012-10-08 18:26:44 +02:00
Alexandre Ratchov a525ed859b unbreak volume calculation 2012-10-08 17:46:48 +02:00
Alexandre Ratchov bca3235a53 dont try to decode device input in monitoring cycles 2012-10-07 13:46:51 +02:00
Alexandre Ratchov f29564da69 better xmalloc from midish 2012-10-06 14:18:49 +02:00
Alexandre Ratchov ce83ee0567 add missing compat includes 2012-10-06 12:24:03 +02:00
Alexandre Ratchov 9f7e689a0a Remove deadcode. Calculate volume weights for play stream only.
Current position for rec-only devices is zero.
2012-10-05 14:30:29 +02:00
Alexandre Ratchov 832cb8bbe7 Fix midi output "ownership". Check if clockticks are out of bounds to
detect bogus libsndio backends. Use a midithru for device control.
2012-09-26 00:07:28 +02:00
Alexandre Ratchov 3e3d663d33 use (s - d->slot) a midi channel 2012-09-05 01:17:41 +02:00
Alexandre Ratchov 526f2d2b92 upon connection copy the maxweight parameter from the opt structure 2012-09-04 16:54:45 +02:00
Alexandre Ratchov 41b3188fd4 move data outside dsp states, generate silence with enc_sil_do 2012-09-04 12:48:45 +02:00
Alexandre Ratchov 06920b56d9 remove aparams_{eq,copy}, nicer log messages 2012-09-03 10:14:23 +02:00
Alexandre Ratchov 6ce349176e add new sndiod 2012-09-03 00:13:30 +02:00