History log of /openbsd/lib/libsndio/mio.c (Results 1 – 23 of 23)
Revision Date Author Comments
# 95d14907 29-Jun-2019 ratchov <ratchov@openbsd.org>

Check if syscalls return -1 instead of any negative value.

"Looks right" deraadt


# 620c4a6d 31-Oct-2018 miko <miko@openbsd.org>

remove a guard in mio_read(), mio_write, sio_read() & sio_write() for a
zero length request. return value of zero is preserved in this case.

OK ratchov@


# 58aaf78f 19-Sep-2018 miko <miko@openbsd.org>

sys/stat.h not needed here; ok ratchov@


# 163486f8 22-Nov-2015 ratchov <ratchov@openbsd.org>

Don't remove the type component from the device string before passing
it to the *_open() functions. It's more flexible this way. No behaviour
change.


# aea60bee 16-Jan-2015 deraadt <deraadt@openbsd.org>

Move to the <limits.h> universe.
review by millert, binary checking process with doug, concept with guenther


# d418f94b 13-Nov-2013 ratchov <ratchov@openbsd.org>

Prefix by '_' symbols that are not part of the API.

ok deraadt, guenther


# 87bc9f6a 23-Nov-2012 ratchov <ratchov@openbsd.org>

Remplace aucat server by a new sndiod daemon aimed to be simpler
smaller and faster than aucat. It's a drop in replacement with the
following exceptions that don't affect the default setup:
- The s

Remplace aucat server by a new sndiod daemon aimed to be simpler
smaller and faster than aucat. It's a drop in replacement with the
following exceptions that don't affect the default setup:
- The sample rate and the encoding are a per-device parameters
thus -r and -e options must precede the corresponding -f option
- MIDI thru boxes are dynamically created and no -M option
is required anymore, so -M was removed.
- MIDI ports are exposed with a new ``midi/N'' name, rather
than abusing MIDI thru boxes.
with help from armani@, ok deraadt@

show more ...


# cfb56cbf 27-Oct-2012 ratchov <ratchov@openbsd.org>

make midi code use non-blocking i/o as does audio code, in order
to make both look similar


# 9f9aa69f 23-May-2012 ratchov <ratchov@openbsd.org>

Make the "default" string a valid device name that has the same effect
as NULL has. This will (hopefully) simplify ports where the user
passes the device string.


# 7207b069 11-Apr-2012 ratchov <ratchov@openbsd.org>

Use "unsigned int" rather than "unsigned". No object change.
suggested by deraadt@


# b3956098 15-Nov-2011 ratchov <ratchov@openbsd.org>

Add a "device number" component in sndio(7) device names, allowing a
single aucat instance to handle all audio and MIDI services. Since
this partially breaks compatibility, this is a opportunitiy to

Add a "device number" component in sndio(7) device names, allowing a
single aucat instance to handle all audio and MIDI services. Since
this partially breaks compatibility, this is a opportunitiy to fix few
other design mistakes (eg ':' being used by inet6, type name vs api
name confusion, etc..). This leads to the following names:

type[@hostname][,unit]/devnum[.option]

The device number is the minor device number for direct hardware
access (ie the 'N' in /dev/audioN). For aucat, this is the occurence
number of the -f (or -M) option.

There's a compatibility hook to keep old names working if only one
aucat server is running.

show more ...


# 8825335a 17-Oct-2011 ratchov <ratchov@openbsd.org>

Remove midicat since aucat can now be used instead of midicat
with almost the same syntax (roughly an extra -M option).
Thru boxes are created with aucat, and corresponding MIDI port
names have the "

Remove midicat since aucat can now be used instead of midicat
with almost the same syntax (roughly an extra -M option).
Thru boxes are created with aucat, and corresponding MIDI port
names have the "aucat" prefix instead of "midithru". The old
device name will still work some time for backward compatibility.

ok deraadt

show more ...


# 32c0ffd1 06-May-2011 ratchov <ratchov@openbsd.org>

remove almost two years old hack to support legacy audio/midi
device names


# 82bfc72b 16-Apr-2011 ratchov <ratchov@openbsd.org>

Make aucat audio and midi backends share the same code to communicate
with the server. As we're at it use the same protocol for midi and
audio. Now, both audio and midi code use the same SNDIO_DEBUG

Make aucat audio and midi backends share the same code to communicate
with the server. As we're at it use the same protocol for midi and
audio. Now, both audio and midi code use the same SNDIO_DEBUG environment
variable to turn on/off DPRINTF's.

show more ...


# dd964a88 12-Apr-2011 ratchov <ratchov@openbsd.org>

Use mio_<backend>_ prefix for private midi-related functions and put
them in files named mio_<backend>.c
No behaviour change.


# 7e5df7e4 24-Apr-2010 ratchov <ratchov@openbsd.org>

remove trailing spaces, from Alexandr Shadchin, thanks


# 8c73b712 21-Aug-2009 ratchov <ratchov@openbsd.org>

make aucat(1) expose a MIDI device to control server behaviour in
realtime. For now only the playback volume of individual streams can be
changed/monitored. To each stream is assigned a MIDI channel

make aucat(1) expose a MIDI device to control server behaviour in
realtime. For now only the playback volume of individual streams can be
changed/monitored. To each stream is assigned a MIDI channel; the volume
is changed/monitored using the standard controller number 7.

show more ...


# 11fea108 27-Jul-2009 ratchov <ratchov@openbsd.org>

don't use ``return'' in sio_close() and mio_close()


# 251b7ab1 26-Jul-2009 ratchov <ratchov@openbsd.org>

use ``sizeof(string) - 1'' rather than ``strlen(string)'' on static
strings. suggested by Thomas Pfaff


# 8abff7ae 26-Jul-2009 ratchov <ratchov@openbsd.org>

remove the (bogus) special case when mio_open() is called with
a midi device name starting with a separator


# 32917b69 26-Jul-2009 ratchov <ratchov@openbsd.org>

sort and space headers as per style(9)
from Thomas Pfaff


# 4c244198 25-Jul-2009 ratchov <ratchov@openbsd.org>

use const qualifier in libsndio, making it slightly more consistent
with open(2) and write(2) syscalls.
from Thomas Pfaff, jakemsr is fine with it


# 6efede29 25-Jul-2009 ratchov <ratchov@openbsd.org>

Currently midi capable programs can control midi hardware, but
cannot cooperate with other programs. The aim of this change is
to allow any program to send midi data to other programs as they
were m

Currently midi capable programs can control midi hardware, but
cannot cooperate with other programs. The aim of this change is
to allow any program to send midi data to other programs as they
were midi hardware. For instance, this change should solve the
longstanding problem of using a midi sequencer with software
synthesizers. More precisely:

- new midicat(1) utility (actually hardlink to aucat(1)).
it creates software midi thru boxes, allowing programs
to send midi messages to other programs as they were
midi(4) hardware.

- new midi api in libsndio (see mio_open(3)), to access
midi(4) devices and midicat(1) sockets in a uniform way.

- new device naming scheme <service>:<unit>[.<option>],
common to audio and midi.

- new sndio(7) manual describing concepts and naming

The current audio device naming still works, but people having
scripts or configuration files containing device names could read
the sndio(7) man page and slowly start updating device names.

discussed with jakemsr@ and deraadt@, help form jmc@

show more ...