History log of /openbsd-src/lib/libsndio/sio_aucat.c (Results 1 – 21 of 21)
Revision Date Author Comments
# ec8a3410 29-Apr-2022 ratchov <ratchov@openbsd.org>

Add sio_flush(3) function to stop playback immediately

The new sio_flush(3) functions works the same way as sio_stop(3),
except that it doesn't wait for play buffer to be drained. Instead,
it discar

Add sio_flush(3) function to stop playback immediately

The new sio_flush(3) functions works the same way as sio_stop(3),
except that it doesn't wait for play buffer to be drained. Instead,
it discards its contents and returns immediately.

show more ...


# e8cc0bfd 09-Jan-2016 ratchov <ratchov@openbsd.org>

Make code fit in 80 columns, remove trailing spaces & tabs.


# 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.


# 00b79159 07-Mar-2014 ratchov <ratchov@openbsd.org>

slightly "nicer" debug printfs


# e6877796 05-Mar-2014 ratchov <ratchov@openbsd.org>

- use relative read/write positions to keep track of buffer
usage as seen by the caller
- refresh current position before reading/writing data, to keep the
current position always consistent with

- use relative read/write positions to keep track of buffer
usage as seen by the caller
- refresh current position before reading/writing data, to keep the
current position always consistent with read & write pointers
- 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 in play-only and rec-only
modes
- don't wait for POLLIN or POLLOUT to be set to refresh ring pointers,
as they may not be set in certain cases. Fixes sndiod crash after
few days of continuous playback.
- save current parameters instead of calling getpar() too often

show more ...


# e791f9ef 20-Dec-2013 ratchov <ratchov@openbsd.org>

Be less verbose when SNDIO_DEBUG=1 is set.


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

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

ok deraadt, guenther


# 07e4e28e 23-Nov-2012 ratchov <ratchov@openbsd.org>

Make the client wait for the first flow control message rather than
assuming it can send a full initial data buffer. This requires protocol
version bump (but no library version bump).


# 5ffd5747 02-Nov-2012 ratchov <ratchov@openbsd.org>

Use dedicated messages for flow control instead of abusing clock tick
messages and enable flow control for MIDI. Since this requires protocol
version bump, both sndiod and libsndio must be kept up to

Use dedicated messages for flow control instead of abusing clock tick
messages and enable flow control for MIDI. Since this requires protocol
version bump, both sndiod and libsndio must be kept up to date to work
together.

show more ...


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

include netinet/in.h to get htons & friends prototypes


# 443bd1b2 02-Sep-2012 ratchov <ratchov@openbsd.org>

Be nice with the server and align data packets to audio block boundary


# 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 ...


# 192c50e5 03-Jun-2011 ratchov <ratchov@openbsd.org>

don't forget to send the initial clock tick


# b5fec221 02-May-2011 ratchov <ratchov@openbsd.org>

Add missing byter order conversions in message headers. Fixes the case
when the server and the client are not of the same endianness.
Found by naddy.


# 7e5c91da 18-Apr-2011 ratchov <ratchov@openbsd.org>

slightly cleanup by separating socket-specific code from
protocol specific code. No behaviour change


# 3d9e0d23 16-Apr-2011 ratchov <ratchov@openbsd.org>

for unix domain socket addresses use AUCAT_PATH and MIDICAT_PATH
macros instead of hardcoded strings. No object change


# 629f51af 16-Apr-2011 ratchov <ratchov@openbsd.org>

Since aucat supports any parameter combination sio_getcap() doesn't
need to query the server for supported parameters. So stop using the
AMSG_GETCAP message, and remove it completely from the aucat p

Since aucat supports any parameter combination sio_getcap() doesn't
need to query the server for supported parameters. So stop using the
AMSG_GETCAP message, and remove it completely from the aucat protocol.

show more ...


# 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 ...


# b041ccb2 08-Apr-2011 ratchov <ratchov@openbsd.org>

Clean up function naming: use sio_<backend>_ prefix for private
audio-related functions and put them in files named sio_<backend>.c
No behaviour changes.