Alexandre Ratchov
283aab28b0
fix msb usage in aparams_native()
2012-10-05 17:58:11 +02:00
Alexandre Ratchov
8d3f1fbe70
poll the right number of descriptors
2012-10-05 17:07:18 +02:00
Alexandre Ratchov
03907f98dc
more libsndio consistency checks
2012-10-05 16:04:45 +02:00
Alexandre Ratchov
753faf3d11
check consistency of libsndio
2012-10-05 14:30:56 +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
7709b5d017
style
2012-10-05 14:24:38 +02:00
Alexandre Ratchov
2630880acc
handle rec xruns as well
2012-10-04 19:22:15 +02:00
Alexandre Ratchov
8961afb69e
include arpa/inet.h to get byte order routines
2012-10-04 15:24:43 +02:00
Alexandre Ratchov
a3a786b16e
handle xruns
2012-10-04 15:24:08 +02:00
Alexandre Ratchov
5136ef4aad
trim spaces at end of lines
2012-10-03 15:41:56 +02:00
Alexandre Ratchov
8c5a080731
dont dump stream state if debugging isn't enabled
2012-09-27 10:40:11 +02:00
Alexandre Ratchov
f0f8c69cac
hide some debug info
2012-09-26 22:33:37 +02:00
Alexandre Ratchov
b7f6f22883
Misc. alsa fixes:
...
- use alsa start threshold rather filling manually play buffers
- remove unused code, cleanup error messages
- fix buffer size calculations
- align period size to 32 to workaround strange alsa behavior
- force buffer size to be multiple of the period size
2012-09-26 22:32:28 +02:00
Alexandre Ratchov
3b6cdd213a
crank max descriptors to 8
2012-09-26 22:23:05 +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
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
0127efd381
disable sndiod by default, use aucat as server
2012-09-20 19:15:53 +02:00
Alexandre Ratchov
f997f10b0e
fix interface to poll(2)
2012-09-20 11:00:31 +02:00
Alexandre Ratchov
e451d47880
Don't read the xrun counter before the offset in the audio ring,
...
otherwise we'd open a tiny time window during which a xrun may occur
in turn making the sio_onmove() clock wrong during one tick.
2012-09-15 01:35:39 +02:00
Alexandre Ratchov
25e3fe8839
remove wsil() and rdrop()
2012-09-05 10:05:48 +02:00
Alexandre Ratchov
c8a7d6c924
allow the lib to poll multiple descriptors
2012-09-05 09:46:40 +02:00
Alexandre Ratchov
3e3d663d33
use (s - d->slot) a midi channel
2012-09-05 01:17:41 +02:00
Alexandre Ratchov
84d21ff8c2
properly count file descriptors
2012-09-05 00:50:42 +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
b4b6aa1844
remove XXX in constant names
2012-09-04 12:48:01 +02:00
Alexandre Ratchov
ff73404bb6
re-enable timer
2012-09-04 10:03:22 +02:00
Alexandre Ratchov
b77718fd0b
simplify manual, remove -x option
2012-09-03 19:59:35 +02:00
Alexandre Ratchov
0a0b1c0b20
move aparams.c contents in dsp.c
2012-09-03 13:20:41 +02:00
Alexandre Ratchov
f1c34efede
style
2012-09-03 10:21:12 +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
Alexandre Ratchov
9ca454512a
align writes to block size
2012-09-02 16:41:27 +02:00
Alexandre Ratchov
759c751cfd
include types.h rather that param.h, use unsigned for magic
2012-08-30 10:06:09 +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
6c0895ba37
alsa has no volume knob
2012-05-29 18:59:39 +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
7f08f4d1fd
dont use the symlink
2012-05-10 11:08:05 +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