1
0
mirror of https://github.com/ericonr/sndio.git synced 2024-02-18 04:45:21 -06:00
Commit Graph

1064 Commits

Author SHA1 Message Date
Alexandre Ratchov
2c97522b5a Sync midicat(1) manual to OpenBSD. 2019-02-21 07:44:07 +01:00
Alexandre Ratchov
00910bf6fa mio_open.3: "a" MIDI, not "an"; from jmc@ 2019-02-21 07:43:36 +01:00
Alexandre Ratchov
d428027573 Tweak a space to reduce diff with OpenBSD. 2019-02-21 07:42:20 +01:00
Alexandre Ratchov
16ae676f9e Say that using sio_getcap() to negociate parameters is not recomended.
From Paul Swanson <psw at protonmail.com>, ok jmc
2019-02-21 07:39:56 +01:00
Alexandre Ratchov
d9c44b2c2d Remove guards for a zero length read or write requests. From miko@. 2019-02-21 07:37:37 +01:00
Alexandre Ratchov
dba52ea270 Merge branch 'mixer' of ssh://moule/~alex/git/sndio into mixer 2018-12-29 22:59:06 +01:00
Alexandre Ratchov
10777e2260 Revert "midicat: Move midi write its own routine."
This reverts commit ea55b2c67d.
2018-11-08 11:25:39 +01:00
Alexandre Ratchov
29e55c0423 Revert "midicat: Move midi write its own routine."
This reverts commit ea55b2c67d.
2018-11-08 11:25:05 +01:00
Alexandre Ratchov
1011a5ee24 Revert "midicat: Add .mid file support, using system clock."
This reverts commit 1ad4aa41fd.
2018-11-08 11:24:54 +01:00
Alexandre Ratchov
b256c9880f Merge branch 'master' into mixer 2018-11-08 08:25:41 +01:00
Alexandre Ratchov
89ae9f07f9 Merge branch 'mixer' of ssh://moule/~alex/git/sndio into mixer 2018-11-07 22:24:10 +01:00
Alexandre Ratchov
2799f8975e aucat: Fix clipping during float to integer conversions.
From Jari Vetoniemi <mailroxas at gmail.com>. Thanks!
2018-11-07 22:23:18 +01:00
Alexandre Ratchov
6dbdbf8aed Remove unused includes from siomix.c. 2018-11-07 22:23:04 +01:00
Alexandre Ratchov
46a0b9b9c0 Remove unused includes from siomix.c. 2018-09-26 14:12:06 +02:00
Alexandre Ratchov
f8e32277b1 Merge branch 'master' into mixer 2018-09-26 14:09:15 +02:00
Alexandre Ratchov
d7a55c76ee No need to include sys/stat.h. From miko@. 2018-09-26 13:52:53 +02:00
Alexandre Ratchov
dc31dcd99e Fix message to reflect "rmidi" is the expected string. From miko@. 2018-09-26 13:52:50 +02:00
Alexandre Ratchov
d4048a3a19 Use _sndio_parsenum() to parse device numbers. From miko@. 2018-09-26 13:45:23 +02:00
Alexandre Ratchov
471495bd21 Clear resamp state array with memset. From miko@. 2018-09-26 13:36:42 +02:00
Alexandre Ratchov
fed779e8cf Merge branch 'midicat' into mixer 2018-09-07 09:37:58 +02:00
Alexandre Ratchov
6d55c0b59f Merge branch 'master' into mixer 2018-07-27 16:30:57 +02:00
Alexandre Ratchov
6443e1dee1 sndiod: rename /tmp/aucat/aucatN -> /tmp/sndio/sockN 2018-07-27 15:42:51 +02:00
Alexandre Ratchov
8018db24a0 libsndio: move ~/.aucat_cookie to ~/.sndio/cookie 2018-07-27 15:41:04 +02:00
Alexandre Ratchov
1ad4aa41fd midicat: Add .mid file support, using system clock. 2018-07-04 22:15:48 +02:00
Alexandre Ratchov
6a9d8027d5 Merge branch 'master' into mixer 2018-07-03 09:00:38 +02:00
Alexandre Ratchov
ea55b2c67d midicat: Move midi write its own routine. 2018-06-19 12:30:06 +02:00
Alexandre Ratchov
bc32c07bcd Merge branch 'master' into mixer 2018-06-19 07:52:50 +02:00
Alexandre Ratchov
c9a6bf3db6 sndiod: Set slot state outside slot_attach() as we do in slot_detach(). 2018-06-11 19:57:20 +02:00
Alexandre Ratchov
6bc6041b30 sndiod: Reset skip counter in slot_start(). 2018-06-11 19:57:16 +02:00
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
84ec0ebd8c sndiod: Remove useless check of s->ops in slot_setvol(). 2018-06-11 19:57:12 +02:00
Alexandre Ratchov
293d7047bd sndiod: No need to initialize s->mix.weight in slot_stop().
It is calculated by dev_mix_adjvol() called by slot_attach().
2018-06-11 19:57:10 +02:00
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
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
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
ddf5e0dfa7 sndiod: move slot buffer allocations in their own routines 2018-06-09 09:27:27 +02:00
Alexandre Ratchov
88e75c3d10 sndiod: factor common code of slot_stop() 2018-06-09 09:23:40 +02:00
Alexandre Ratchov
414e011cf6 sndiod: remove handling of unreachable state in slot_stop() 2018-06-09 08:33:24 +02:00
Alexandre Ratchov
eb847f40b4 examples: add -n option to rec 2018-06-09 08:05:52 +02:00
Alexandre Ratchov
562ee176e9 Merge branch 'master' into mixer 2018-06-08 08:24:06 +02:00
Alexandre Ratchov
210da6b0cb sndiod: simplify the resampling routine 2018-06-08 08:23:22 +02:00
Alexandre Ratchov
cf03f7423d sndiod: move all conversions in dev_mix_badd() and dev_sub_bcopy()
The conversion chain processes exactly one block, so no need to
calculate & count the number of processed samples. This allows to move
the calls to processing routines in dev_mix_badd() and
dev_sub_bcopy(), which is much simpler. No behaviour change.
2018-06-08 08:22:35 +02:00