Alexandre Ratchov
3871e138eb
remove unused protos
2014-12-30 19:32:13 +01:00
Alexandre Ratchov
1602b19c78
move conversion code dsp.c
2014-12-30 19:17:32 +01:00
Alexandre Ratchov
f3ef9df7b4
add support for f32le in .wav files
2014-12-30 18:45:05 +01:00
Alexandre Ratchov
10149c9d0e
s/wav_conv/wav_conv_map
2014-12-29 18:47:10 +01:00
Alexandre Ratchov
b8733bf001
replace 2 -> sizeof(adata_t), in .wav conversion code
2014-12-29 13:36:53 +01:00
Alexandre Ratchov
60fb4a32ae
initialize dev_prime to zero in rec-only mode
2014-12-29 12:45:24 +01:00
Alexandre Ratchov
62d7597747
add macro for float handling
2014-12-28 14:48:57 +01:00
Alexandre Ratchov
fcc7acfe65
unused str() macro
2014-11-17 08:24:43 +01:00
Alexandre Ratchov
af4e943293
use sndiod's utils.c
2014-11-17 08:19:16 +01:00
Alexandre Ratchov
c80a3fc1ff
better error message
2014-11-17 08:18:36 +01:00
Alexandre Ratchov
4e01a1289d
remove -z from usage
2014-11-17 07:55:50 +01:00
Alexandre Ratchov
68aeafc379
remove forgotten conf.h file
2014-11-17 07:49:16 +01:00
Alexandre Ratchov
850121fb2c
set file bufsz to device bufsz
2014-11-17 07:46:09 +01:00
Alexandre Ratchov
0639edb852
set default device bufsz to 200ms
2014-11-17 07:43:38 +01:00
Alexandre Ratchov
cc1c9a5c71
dont set block size
2014-11-17 07:38:00 +01:00
Alexandre Ratchov
c075b80574
document -b, remove -z
2014-11-17 07:36:28 +01:00
Alexandre Ratchov
737ca22c4d
bump copyright year
2014-11-15 13:56:12 +01:00
Alexandre Ratchov
7cbcc30319
- release constraints used to be required in server mode
...
- hardcode the processing chain (it used to be setup dynamically)
- merge simpler processing code from sndiod
- remove -M option, aucat is not a midi tool, sorry.
- remove -t flag (redundant with -q flag)
- remove -w flag (makes sense for server mode only)
- remove -C flag (necessary for full-duplex streams only)
- remove -x flag (xruns already handled by sndiod)
- make "-j off" the default (sndiod already does the job)
- don't limit the number of played/recorded files.
2014-11-15 13:51:02 +01:00
Alexandre Ratchov
b20e28a66e
merge from openbsd: typos, use of O_CLOEXEC, _sndio_debug fix
2014-08-19 16:05:29 +02:00
Alexandre Ratchov
fc6a9ca274
more Va -> Cm fixes, from jan stary
2014-02-08 16:04:51 +01:00
Alexandre Ratchov
f7d028191a
Remove section about server capability which was removed
...
long time ago. Use .Cm instead of .Va for argument
parameters. From Jan Stary <hans at stare.cz>, thanks!
2014-01-28 07:28:20 +01:00
Alexandre Ratchov
16f44939b1
remove unused variables
2013-11-18 18:45:19 +01:00
Alexandre Ratchov
b1c417ab04
add prototypes
2013-11-18 17:50:04 +01:00
Alexandre Ratchov
37de53fd9b
remove legacy server bits
2013-11-12 07:51:02 +01:00
Alexandre Ratchov
280f58c39a
don't warn on ECONNABORTED
2013-03-13 09:35:21 +01:00
Alexandre Ratchov
41372817a0
hide server bits
2012-12-03 17:37:08 +01:00
Alexandre Ratchov
7eb795bc19
connect sndiod to the install target
2012-11-12 09:31:49 +01:00
Alexandre Ratchov
bf045ccb03
readd back removed options by mistake
2012-11-10 16:37:03 +01:00
Alexandre Ratchov
063c31e365
reenable server capability in aucat
2012-11-10 16:20:32 +01:00
Alexandre Ratchov
ebdfbab96a
insert recorded files on the wav list
2012-11-07 09:10:03 +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
ad00f359cc
Dont insert twice recorded wav files (-o) on the list of recorded
...
files; with help from Remco <remco at d-compu.dyndns.org>
2012-11-02 12:19:02 +01:00
Alexandre Ratchov
3f1b2007ce
initialize wav structure enough, for wav_close() to work
2012-11-02 12:05:56 +01:00
Alexandre Ratchov
b7818cbbce
fix flowctl causing deadlocks
2012-10-28 15:36:57 +01:00
Alexandre Ratchov
42920b0c49
make privsep user settable
2012-10-27 14:55:18 +02:00
Alexandre Ratchov
9fc2222a4d
comments
2012-10-27 10:57:50 +02:00
Alexandre Ratchov
b97efa105d
arpa/net.h is not needed
2012-10-26 16:51:09 +02:00
Alexandre Ratchov
52d941c80b
include arpa/inet.h
2012-10-26 16:41:36 +02:00
Alexandre Ratchov
dce7a088e5
fix signedness warnings
2012-10-24 14:55:51 +02: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
983c8433a2
allow sndiod user to be changed, dont check its home directory
2012-10-07 15:50:49 +02:00
Alexandre Ratchov
49feb9131a
include arpa/inet.h to get byte order conv
2012-10-06 12:29:02 +02:00
Alexandre Ratchov
16fa47c430
Upon "master volume change" message, send feedback to other clients
...
only. Fixes the master volume slider stuttering in MIDI programs. Found
by armani@
2012-09-26 00:08:55 +02:00
Alexandre Ratchov
0127efd381
disable sndiod by default, use aucat as server
2012-09-20 19:15:53 +02:00
Alexandre Ratchov
6ce349176e
add new sndiod
2012-09-03 00:13:30 +02:00
Alexandre Ratchov
a268087ed6
sync to openbsd (s/fprintf/errx, usage, etc)
2012-08-30 10:04:20 +02:00
Alexandre Ratchov
e7eab266fa
dont return value in void functions
2012-08-30 10:01:42 +02:00
Alexandre Ratchov
16a36fa53e
make "default" a valid device name
2012-05-23 21:26:54 +02:00
Alexandre Ratchov
9cc45e62e2
dont allow duplicate mixer knob names
2012-05-23 21:15:09 +02:00
Alexandre Ratchov
2fe4d9ed7e
fix channel mapping arithmetics causing crashes, from remco
2012-05-23 21:14:47 +02:00
Alexandre Ratchov
e57154e8fb
s/later/latter/ from jmc
2012-04-25 23:50:29 +02:00
Alexandre Ratchov
ce067bb000
Fix typos, from Michael W. Bombardieri <mb at ii.net>, Thanks!
2012-04-25 09:22:14 +02:00
Alexandre Ratchov
aadea2d0d1
unbreak compilation with no DEBUG defined
2012-04-19 09:06:10 +02:00
Alexandre Ratchov
10efdd93f3
In the "reply" code path, lock the socket while invoking the
...
write-end code from the read-end code, and don't forget to check
if the socket was not destroyed. Fixes very rare random crashes.
2012-04-17 16:34:54 +02:00
Alexandre Ratchov
2775f46e12
panic (and show fill trace) if we try to delete a NULL aproc
2012-04-17 16:33:16 +02:00
Alexandre Ratchov
1247c187a7
s/unsigned/unsigned int/g, requested by deraadt
2012-04-11 09:21:29 +02:00
Alexandre Ratchov
ab990cf3ef
tweaks from jmc
2012-04-06 09:51:56 +02:00
Alexandre Ratchov
9f12e52145
Fix memory leak in the error handling code path of failed device
...
creation. From jsg@
2012-04-04 13:33:32 +02:00
Alexandre Ratchov
cb82b78c1c
Add a simple an clear description of what sndiod does.
...
Discussed with deraadt and jmc
2012-04-04 13:32:53 +02:00
Alexandre Ratchov
2d72ee38d1
Don't spin if accept() fails because it is out of file descriptors,
...
instead set a flag that skips the listening socket from the poll()
event loop. The flag is cleared whenever a file descriptor is closed
allowing accept() to be retried.
Explained by deraadt@
2012-03-29 22:13:49 +02:00
Alexandre Ratchov
2b23e80702
add a master volume knob
2012-03-23 14:32:29 +01:00
Alexandre Ratchov
47288b2d38
switch defaults to 48kHz, 960 frame/block, 8 blocks
2012-03-22 09:32:51 +01:00
Alexandre Ratchov
cfdd9671b8
remove unused variables, from Michael W. Bombardieri
2012-01-14 14:14:54 +01:00
Alexandre Ratchov
1949c506b8
Fix the way the mixer figures out which groups of streams have
...
common channels and thus need to share their dynamic range. Fixes,
unnecessarily decreased volume in some theoretical cases.
2012-01-10 09:12:00 +01:00
Alexandre Ratchov
de7dc61de4
hide "device disappeared" messages unless -d is used
2012-01-10 09:11:31 +01:00
Alexandre Ratchov
d5ee44fc8b
When a sub-device is created (-s), check if a hardware
...
device was already created (-f) before trying to use the
default one, otherwise all sub-devices end up attached
to the default device. Noticed by peters at schwertfisch.de,
thanks!
2012-01-10 09:11:10 +01:00
Alexandre Ratchov
ba61afa867
remove trailing whitespace
2011-12-10 00:02:17 +01:00
Alexandre Ratchov
9916b7362c
fix usage
2011-12-10 00:01:58 +01:00
Alexandre Ratchov
073a090888
move server specific bits into new sndiod daemon
2011-12-09 23:49:26 +01:00
Alexandre Ratchov
b218a19c35
don't use a server flag, just check if we expose sub-devices
2011-12-02 13:46:03 +01:00
Alexandre Ratchov
37f7cba0f8
reuse midi-control code to implement midi thru boxes and remove
...
the old midithru implementation; less code, less bugs. As a side
effect, midi output doesn't implement running status "compression"
any more
2011-12-02 11:38:53 +01:00
Alexandre Ratchov
a3955999b1
don't add .wav headers to .syx files
2011-12-02 11:37:57 +01:00
Alexandre Ratchov
37baea58d8
move mmc/mtc and volume control bits from struct aproc to struct dev
2011-11-21 09:06:25 +01:00
Alexandre Ratchov
a34a843352
prefix device specific messages with the device name.
...
Mark the device as DEV_CLOSE before closing streams, otherwise
a stream may try to call dev_close() a second time (dev_close() is
in the dev_unref() code path)
2011-11-16 22:31:25 +01:00
Alexandre Ratchov
51ce17cf96
consider two aprocs are intependent if one of them is NULL
2011-11-16 09:04:32 +01:00
Alexandre Ratchov
f37ef2f43c
make midi owner per-output
2011-11-15 18:06:47 +01:00
Alexandre Ratchov
93a88a471d
missing full stop, from jmc
2011-11-15 13:54:53 +01:00
Alexandre Ratchov
73d8f28428
always create a default device in server mode
2011-11-14 09:29:33 +01:00
Alexandre Ratchov
dafad3b44a
update with new device names
2011-11-14 08:52:48 +01:00
Alexandre Ratchov
c8f20fb97f
make devnum mandatory
2011-11-08 09:32:00 +01:00
Alexandre Ratchov
7307eeea39
s/mid/thr
2011-11-03 10:08:51 +01:00
Alexandre Ratchov
17743923b8
merge obsd man page changes
2011-11-01 18:01:52 +01:00
Alexandre Ratchov
c62616c78f
check debug_level
2011-11-01 18:01:33 +01:00
Alexandre Ratchov
e4ef0dc8d9
switch to type@hostname,unit/num.opt device names
2011-11-01 13:02:13 +01:00
Alexandre Ratchov
0e4543ecf5
make -aoff the default
2011-10-20 18:17:48 +02:00
Alexandre Ratchov
284343965f
fix getopt duplicate options
2011-10-18 16:22:16 +02:00
Alexandre Ratchov
8c514d82b6
remove midicat
2011-10-18 00:29:58 +02:00
Alexandre Ratchov
4bbfe303b3
typo, from Remco
2011-10-14 13:06:41 +02:00
Alexandre Ratchov
72ac220263
more fixes from jmc
2011-10-13 13:32:32 +02:00
Alexandre Ratchov
4811aac665
sort play and record parameters confusion
2011-10-11 12:56:10 +02:00
Alexandre Ratchov
3a452a4c0d
fixes from jmc
2011-10-10 14:19:33 +02:00
Alexandre Ratchov
fbba1f101a
autovol defaults to 1
2011-10-08 16:06:47 +02:00
Alexandre Ratchov
6e0d4f312e
s/tr/mmc
2011-10-05 14:51:05 +02:00
Alexandre Ratchov
48c6dc6585
better dprintfs
2011-10-05 14:14:20 +02:00
Alexandre Ratchov
71980f4d34
Cleanup:
...
- stream definitions (-ios) now must follow devices definitions they
are attached to (-fMn).
- the -n option is now a special "loopback" device and is thus used
like -f, eg it must precede streams
- channel numbers (-Cc options) correspond always to channel numbers
of the hardware.
- removed -u option (not needed anymore)
2011-10-05 13:21:01 +02:00
Alexandre Ratchov
31909d1dad
tweak comment
2011-10-05 13:12:44 +02:00
Alexandre Ratchov
6313d1e2bc
check for orphaned -q def
2011-09-07 12:59:20 +02:00
Alexandre Ratchov
1fd5b878fb
allow seeking while recording, filling the file with zeros
2011-09-06 08:40:59 +02:00
Alexandre Ratchov
a8903f19f0
sync to midish license
2011-08-16 13:03:58 +02:00
Alexandre Ratchov
d187c66343
make -u flag per-device similarly to -a and -w
2011-06-29 09:36:03 +02:00