Commit Graph

654 Commits

Author SHA1 Message Date
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
Alexandre Ratchov 9c47745d49 remove sqrtone bits 2014-02-19 17:31:16 +01:00
Alexandre Ratchov 556d5f075b dont use rec buffers when in the SLOT_STOP state 2014-02-17 10:54:16 +01:00
Alexandre Ratchov de206b94f5 hide debug printfs 2014-02-17 10:32:38 +01:00
Alexandre Ratchov 54f97478bd dont drain rec direction 2014-02-17 10:29:34 +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 d02745522d backout latest 2014-02-15 21:56:05 +01:00
Alexandre Ratchov 3fe3b27ace return actual rchan, rather requested one 2014-02-14 20:59:38 +01:00
Alexandre Ratchov 35700a7787 unbreak install target 2014-02-14 15:20:22 +01:00
Alexandre Ratchov 8ed593d58a return 1, if hdl already set 2014-02-14 15:19:44 +01:00
Alexandre Ratchov 6cbde939dd ensure that rpos <= cpos <= wpos 2014-02-14 15:15:13 +01:00
Alexandre Ratchov e8fc261612 use save parameters instead of calling getpar() 2014-02-13 16:41:51 +01:00
Alexandre Ratchov 1161add0e8 use save parameters instead of calling getpar() 2014-02-13 16:39:42 +01:00
Alexandre Ratchov 7fbbfab94a remove unused 2014-02-13 16:36:56 +01:00
Alexandre Ratchov 05c5ae3c6a handle xrun if xfers are not frame-aligned 2014-02-13 15:11:33 +01:00
Alexandre Ratchov 9fc928011a set rbpf/wbpf to 1 if not used to avoid SIGFPE 2014-02-13 15:10:56 +01:00
Alexandre Ratchov 262541f176 remove unused 2014-02-13 13:05:37 +01:00
Alexandre Ratchov 7a9ad77510 use relative read/write positions for debug printfs 2014-02-13 13:04:02 +01:00
Alexandre Ratchov 54189d0fa8 parse -b option 2014-02-13 12:36:43 +01:00
Alexandre Ratchov cdf83eabd5 connect xvolkeys to the build 2014-02-10 14:24:57 +01:00
Alexandre Ratchov fc6a9ca274 more Va -> Cm fixes, from jan stary 2014-02-08 16:04:51 +01:00
Alexandre Ratchov 236d573f93 copy the right number of channels during join/expand 2014-02-08 16:00:54 +01:00
Alexandre Ratchov 6f415698f8 remove debug bits: dont pas unused channels 2014-02-08 09:47:44 +01:00
Alexandre Ratchov fa0cd74200 use the propoper integer size with AMSG_ISSET 2014-02-08 09:46:13 +01:00
Alexandre Ratchov b50207563c handle leak 2014-02-06 12:25:32 +01:00
Alexandre Ratchov 4049ff3f12 handle POLLHUP 2014-02-06 10:27:52 +01:00
Alexandre Ratchov 0db9a7904e comments, unused vars 2014-02-06 10:22:47 +01:00
Alexandre Ratchov 860ecb9d0d allow device to be disconnected 2014-02-06 10:16:33 +01:00
Alexandre Ratchov 955ec5b4b3 use -q instead of -f 2014-02-05 18:07:49 +01:00
Alexandre Ratchov fb1d34f919 handle keyboard remappings 2014-02-04 13:03:59 +01:00
Alexandre Ratchov 28654d372c add xvolkeys utility 2014-02-04 11:53:39 +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 002a501b9f cleanup tags, from schwarze@ 2014-01-27 13:16:23 +01:00
Alexandre Ratchov d522f48e90 fix %d vs %lld format confusion 2013-12-31 13:34:04 +01:00
Alexandre Ratchov 0bc4bd2729 tweak style, use better defaults 2013-12-31 13:15:06 +01:00
Alexandre Ratchov 14c0ab970a drop blocks and insert silence in the socket tx/rx code path 2013-12-31 13:14:01 +01:00
Alexandre Ratchov 65c99cf7c3 round buffer size to nearest possible value 2013-12-31 13:13:04 +01:00
Alexandre Ratchov a49e6f5991 clarify sio_stop() and friends 2013-12-27 13:20:04 +01:00
Alexandre Ratchov f4f0b9e7b7 - replace "audio stream" by "audio device", as sndio is a device
abstraction
- remove useless statements.
2013-12-22 02:22:00 +01:00
Alexandre Ratchov dd2c5a2816 set rec params before play params 2013-12-11 13:35:28 +01:00
Alexandre Ratchov 496c443bca log errors only if SNDIO_DEBUG=1 2013-12-10 20:23:11 +01:00
Alexandre Ratchov b22be8340a log only errors if SNDIO_DEBUG=1 2013-12-10 20:14:48 +01:00
Alexandre Ratchov 1c496e9eab remove forgotten debug bits 2013-12-10 20:02:10 +01:00
Alexandre Ratchov 5c5a7280c2 use 0x7F as dev numer in sysex 2013-12-10 20:00:36 +01:00
Alexandre Ratchov e8221ec396 handle partial samples in alsa 2013-12-10 08:43:45 +01:00
Alexandre Ratchov 19a9096069 fix reload function sysvinit 2013-11-29 10:58:43 +01:00
Alexandre Ratchov 90db576827 implement getcaps for alsa 2013-11-28 18:47:07 +01:00
Alexandre Ratchov 70fccc4252 fix comment 2013-11-27 22:32:53 +01:00