Commit Graph

21 Commits

Author SHA1 Message Date
Alexandre Ratchov 934e1611e8 Check return values of syscalls against -1, from deraadt@. 2019-07-01 09:20:22 +02:00
Alexandre Ratchov d7a55c76ee No need to include sys/stat.h. From miko@. 2018-09-26 13:52:53 +02:00
Alexandre Ratchov dc31dcd99e Fix message to reflect "rmidi" is the expected string. From miko@. 2018-09-26 13:52:50 +02:00
Alexandre Ratchov c0767fd171 call _sndio_debug_init() in mio_rmidi_getfd() 2017-11-04 10:40:00 +01:00
Alexandre Ratchov 0663b9b2b7 make mio_rmidi_getfd() non-static, missed in last commit 2017-11-04 09:34:30 +01:00
Alexandre Ratchov 7e19ef6644 Make *_getfd() and *_fdopen() public.
This allows pledged sndiod to build with the portable library.
2017-11-04 09:14:29 +01:00
Alexandre Ratchov 2606d3f24e Add support for FreeBSD raw usb-midi devices. Bits from Tobias
Kortkamp <t@tobik.me> plus configure script tweaks.
2016-11-06 12:21:59 +01:00
Alexandre Ratchov b5a1760af3 unexpand tabs 2016-01-09 09:23:56 +01:00
Alexandre Ratchov 7530bbf6d2 Pass full device name to audio/midi backends. 2015-12-09 11:13:11 +01:00
Alexandre Ratchov 5d431d3616 Replace hard-coded strings with macros, replace PATH_MAX with actual
string length, validate audio and midi device numbers
2015-10-02 14:28:17 +02:00
Alexandre Ratchov 7834cb2a56 drop support for ":" in device names 2014-11-18 10:31:18 +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 686dd7065e cleanup namespace 2013-11-12 09:49:28 +01: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 1247c187a7 s/unsigned/unsigned int/g, requested by deraadt 2012-04-11 09:21:29 +02:00
Alexandre Ratchov e4ef0dc8d9 switch to type@hostname,unit/num.opt device names 2011-11-01 13:02:13 +01:00
Alexandre Ratchov 313ba302a8 use common DPRINTF's for audio and midi code 2011-04-16 11:12:41 +02:00
Alexandre Ratchov 7fa1603c83 Clean up function naming: use mio_<backend>_ prefix for private
midi-related functions and put them in files named mio_<backend>.c
No behaviour changes.
2011-04-12 11:24:49 +02:00
Alexandre Ratchov f268454989 import from OpenBSD 2010-08-19 22:38:45 +02:00