Commit Graph

117 Commits

Author SHA1 Message Date
Alexandre Ratchov a26dd8e520 remove wrong comment about wrong code 2012-10-27 15:02:44 +02:00
Alexandre Ratchov fcc55272a8 hide alsa defs if USA_ALSA is not defined 2012-10-27 14:11:23 +02:00
Alexandre Ratchov 5681bf83e2 backout debug traces additions 2012-10-27 10:53:27 +02:00
Alexandre Ratchov 4b0c3775f1 crank SIO_MAXNFDS 2012-10-26 18:53:30 +02:00
Alexandre Ratchov 1c240e397d snd_pcm_poll_descriptors_count is not reliable use SIO_MAXNFDS 2012-10-26 18:50:09 +02:00
Alexandre Ratchov 1e60e2e649 add mio_alsa 2012-10-26 18:11:15 +02:00
Alexandre Ratchov f7a1b42dce user netinet/inet.h rather than arpa/inet.h 2012-10-26 16:58:55 +02:00
Alexandre Ratchov e750088847 fix bufsz arithmetic 2012-10-26 15:29:12 +02:00
Alexandre Ratchov 532c615895 use snd_pcm_poll_descriptors_count at initialisation 2012-10-26 15:01:04 +02:00
Alexandre Ratchov 80a52c9600 add alsa rawmidi support 2012-10-26 14:30:48 +02:00
Alexandre Ratchov 9f6bcbbc0e rmidi is not blocking as well 2012-10-26 10:55:57 +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 3a6bc9af60 rearrange debug traces 2012-10-24 10:31:19 +02:00
Alexandre Ratchov 8ca941be6f handle both EPIPE and ESTRPIPE 2012-10-17 22:43:01 +02:00
Alexandre Ratchov aecccdb36f use int for nfds 2012-10-06 12:25:25 +02:00
Alexandre Ratchov bde184cd77 save fifo pointers for debug purposes 2012-10-05 21:27:11 +02:00
Alexandre Ratchov 8a85df2977 tweak debug traces 2012-10-05 20:42:52 +02:00
Alexandre Ratchov c52770bd18 make debug level 1 less verbose 2012-10-05 19:37:47 +02:00
Alexandre Ratchov 37c1d89c64 use max(idelta, odelta) as clock reference 2012-10-05 19:35:31 +02:00
Alexandre Ratchov c257a68d18 ensure there are at least two periods 2012-10-05 18:15:58 +02:00
Alexandre Ratchov 9c73c409dc poll only bits set by sio_pollfd 2012-10-05 18:03:13 +02:00
Alexandre Ratchov 8d3f1fbe70 poll the right number of descriptors 2012-10-05 17:07:18 +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 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 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 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 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 7f08f4d1fd dont use the symlink 2012-05-10 11:08:05 +02:00
Alexandre Ratchov 1247c187a7 s/unsigned/unsigned int/g, requested by deraadt 2012-04-11 09:21:29 +02:00
Alexandre Ratchov f1b72a401e tweaks from jmc 2012-03-22 09:39:06 +01:00
Alexandre Ratchov 0e45cc33c4 s/transfered/transferred, from tobiasu 2012-03-22 09:38:14 +01:00
Alexandre Ratchov 073a090888 move server specific bits into new sndiod daemon 2011-12-09 23:49:26 +01:00
Alexandre Ratchov 1b0a15aba0 better parsetype routine 2011-11-11 10:41:18 +01:00
Alexandre Ratchov 96f647d64d strncmp() can't be used to parse device type, add our own routine 2011-11-10 10:43:31 +01:00
Alexandre Ratchov 4e44c01026 tweaks from jmc 2011-11-09 09:35:18 +01:00
Alexandre Ratchov d41324905f re-add forgotten argument to .Xr 2011-11-08 20:13:39 +01:00
Alexandre Ratchov c8f20fb97f make devnum mandatory 2011-11-08 09:32:00 +01:00
Alexandre Ratchov d0bc800ea8 unbreak alsa 2011-11-03 13:23:17 +01:00
Alexandre Ratchov 17743923b8 merge obsd man page changes 2011-11-01 18:01:52 +01:00
Alexandre Ratchov 1d71c4a2fa stop using and duplicating ISSEP() macro 2011-11-01 17:30:39 +01:00
Alexandre Ratchov 33d6a705fd factor device name parsing code 2011-11-01 16:56:37 +01:00