Alexandre Ratchov
ed64776ceb
sndiod: Remove redundant slot->tstate variable.
...
It was used to determine whether the slot obeys MMC and is ready
to start. The stop->opt->mmc flag indicates if it obeys MMC and
the slot->pstate == SLOT_READY indicates if it's ready. So
slot->tstate can be safely removed.
2018-06-11 19:57: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
72c6c0a9b8
sndiod: Use opt->dup and remove slot->dup.
2018-06-11 19:53:09 +02:00
Alexandre Ratchov
9eef11f53b
sndiod: Use opt->maxweight and remove slot->maxweight.
2018-06-11 19:53:07 +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
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
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
da8108f09a
add initial support for audio mixers, disabled by default
...
ok armani@
2014-07-16 12:05:01 +02:00
Alexandre Ratchov
c95cb04987
dont check dev_cycle() ret val as we check dev state
2014-03-17 18:42:20 +01:00
Alexandre Ratchov
4b820e4de0
after every cycle, check if this was the last cycle in which case the
...
device may be closed and shouldn't be used
2014-03-17 18:38:57 +01:00
Alexandre Ratchov
0c70f95bd5
unbreak monitoring mode (was 1 block off)
2014-03-17 18:13:11 +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
aa1877d6ef
remove unused "autostart" feature
2014-03-05 21:22:05 +01:00
Alexandre Ratchov
0d773f998a
set attach-time delta
2014-02-22 17:22:42 +01:00
Alexandre Ratchov
32d0426047
run play and rec cycles together: simpler and more robust
2014-02-17 10:21:35 +01:00
Alexandre Ratchov
5f8c1c9420
remove unused bits
2013-09-14 11:36:38 +02:00
Alexandre Ratchov
2834345924
make DEV_xxx contiguous
2012-11-30 21:49:29 +01:00
Alexandre Ratchov
dc522e703f
cleanup debug traces
2012-11-11 01:46:38 +01:00
Alexandre Ratchov
6b88502d9a
fix copyright years
2012-11-10 14:58:53 +01:00
Alexandre Ratchov
5fddbed369
make abuf structure use bytes
2012-11-02 19:05:29 +01:00
Alexandre Ratchov
532e76198c
in siofile, use struct dev directly
2012-11-02 13:19:35 +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
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
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
0a0b1c0b20
move aparams.c contents in dsp.c
2012-09-03 13:20:41 +02:00
Alexandre Ratchov
6ce349176e
add new sndiod
2012-09-03 00:13:30 +02:00