Commit Graph

701 Commits

Author SHA1 Message Date
Alexandre Ratchov 4280ad82da use mixer_incrvol() instead of mixer_setvol() 2014-08-10 19:53:08 +02:00
Alexandre Ratchov aaa1898b8c don't forget to set master_found when it's found 2014-08-10 19:37:00 +02:00
Alexandre Ratchov 2edaaf9b22 make mixer_setvol() volume parameter unsigned 2014-08-10 19:25:40 +02:00
Alexandre Ratchov 09f0514c6a use a master_found flag in case theres no master ctl 2014-08-10 19:23:44 +02:00
Alexandre Ratchov fa8d95b2fa make i, n, nfds of the same type 2014-08-10 14:05:58 +02:00
Alexandre Ratchov 5e0dea1ded remove unused vars, add prototypes 2014-07-17 01:10:21 +02:00
Alexandre Ratchov f6de087c49 print labels with "#" notation if -n isnt used 2014-07-16 15:24:23 +02:00
Jonathan Armani 51b5187f66 Rename a char* conflicting with devname(3) 2014-07-16 14:45:25 +02:00
Alexandre Ratchov 1894783552 fix warning about master not found 2014-07-16 14:17:55 +02:00
Alexandre Ratchov 3f19a6ece0 switch to the new siomix_open(3) api 2014-07-16 14:10:50 +02:00
Alexandre Ratchov 9764ccaa12 remove unused sysex.h 2014-07-16 12:27:16 +02:00
Alexandre Ratchov 95126d3952 hide debug info 2014-07-16 12:26:21 +02: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 88648d8f9b unitialize sock->port pointer 2014-06-02 09:43:06 +02:00
Alexandre Ratchov 408318f6ec log client start only if log_level >= 2 2014-05-15 14:19:15 +02:00
Alexandre Ratchov dfa5df2eb5 add -I. to build with sndio.h in current dir 2014-05-13 09:38:00 +02:00
Alexandre Ratchov 0e0511c762 for alsa, POLL{IN,OUT} events mean that a block can be read or
written (not a byte as unix files expect). Use "tickets" counters that
are reset to hdl->par.round on each POLL{IN,OUT} event. Limit read()
and write() to one block to ensure poll is always called at block
boundaries.
2014-05-05 19:25:15 +02:00
Alexandre Ratchov 0441c58c62 unused function 2014-03-24 06:53:46 +01:00
Alexandre Ratchov 4819480746 fix wrong dev_cycle() comment 2014-03-17 18:48:25 +01: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 0594488a66 typo 2014-03-17 18:13:59 +01:00
Alexandre Ratchov 0c70f95bd5 unbreak monitoring mode (was 1 block off) 2014-03-17 18:13:11 +01:00
Alexandre Ratchov 559d953ef6 backout latest 2014-03-17 17:44:47 +01:00
Alexandre Ratchov d00caaaf96 disable playing and monitoring at the same time and append
slots using MODE_MON at the end of the slot list, so that
data to monitor is produced (by other slots) before the
monitoring slot is consuming it
2014-03-17 09:57:41 +01:00
Alexandre Ratchov e2beb728b4 backout latest 2014-03-10 16:05:30 +01:00
Alexandre Ratchov f1a77bece8 comment xvolkey lines conditionnaly 2014-03-10 15:56:23 +01:00
Alexandre Ratchov 5fb297f312 unbreak xvolkeys conditional compilation 2014-03-10 15:33:26 +01:00
Alexandre Ratchov 4709dcb282 simplify switch/case 2014-03-10 11:20:45 +01:00
Alexandre Ratchov 5543797422 log the correct file state string 2014-03-07 17:35:05 +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 f02fdf0585 add protos 2014-03-07 11:09:28 +01:00
Alexandre Ratchov e3de5cc112 use 3dB steps 2014-03-07 10:55:10 +01:00
Alexandre Ratchov 55309494c6 unused include 2014-03-06 19:21:30 +01:00
Alexandre Ratchov e9feeda8a2 nicer debug traces 2014-03-06 16:59:57 +01:00
Alexandre Ratchov aa1877d6ef remove unused "autostart" feature 2014-03-05 21:22:05 +01:00
Alexandre Ratchov 15739f2718 add "sndio" keyword to please "man -k" 2014-03-05 21:17:42 +01:00
Alexandre Ratchov d536b0972d please gcc 2014-03-05 21:14:57 +01:00
Alexandre Ratchov 2c1feaa186 add missing proto 2014-03-05 21:12:35 +01:00
Alexandre Ratchov 946186b6e5 remove slot_onmove 2014-03-05 21:11:57 +01:00
Alexandre Ratchov e140c92610 remove comment 2014-03-05 21:09:31 +01:00
Alexandre Ratchov f59de2770d check if writable preparing a DATA packet 2014-03-05 20:09:34 +01:00
Alexandre Ratchov 25e29a8cf2 remove unused attr 2014-03-05 19:52:21 +01:00
Alexandre Ratchov 8914029a2f remove autostart attribute 2014-03-05 09:16:57 +01:00
Alexandre Ratchov cbecd3ea8d Fix confusion between processed samples by the hardware (as reported
by GET{I,O}OFFS) and samples played as reported by GETINFO(). Fixes
incorrect delta propagated after xruns.
2014-03-04 23:24:52 +01:00
Alexandre Ratchov 0d773f998a set attach-time delta 2014-02-22 17:22:42 +01:00
Alexandre Ratchov 28ee95c844 add options to trigger xruns and randomize transferts 2014-02-21 11:17:38 +01:00
Alexandre Ratchov d06df743db Refresh current position before reading/writing data, to keep the
current position always consistent with read & write pointers.
2014-02-21 10:58:43 +01:00
Alexandre Ratchov c9d4272377 Don't wait for POLLIN or POLLOUT to be set to refresh ring pointers,
as they may not be set in certain cases
2014-02-21 10:55:30 +01:00