Age | Commit message (Collapse) | Author |
|
for talking to aucat/sndiod
ok ratchov@
|
|
on it, simplifying error checking, reducing system calls, and improving
thread-safety for libraries.
ok miod@
|
|
ok ratchov@
|
|
|
|
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
|
|
makes "man -k" happier.
ok jmc, schwarze
|
|
tweak and ok ratchov@, ok jmc@
|
|
frees the handle and not the opposite
- clarify that sio_close() and sio_stop() dont discard
samples in the play buffer.
suggested by Reimar Doeffinger <Reimar.Doeffinger at gmx.de>
ok jmc@
|
|
abstraction
- remove useless statements.
ok jmc@
|
|
|
|
|
|
suggested by deraadt
|
|
|
|
ok deraadt, guenther
|
|
ok ratchov
|
|
the the generic code, so it can be used by other back-ends as well.
No behavior change (hopefully).
|
|
members to 64bit types. Assign new syscall numbers for (almost
all) the syscalls that involve the affected types, including anything
with time_t, timeval, itimerval, timespec, rusage, dirent, stat,
or kevent arguments. Add a d_off member to struct dirent and replace
getdirentries() with getdents(), thus immensely simplifying and
accelerating telldir/seekdir. Build perl with -DBIG_TIME.
Bump the major on every single base library: the compat bits included
here are only good enough to make the transition; the T32 compat
option will be burned as soon as we've reached the new world are
are happy with the snapshots for all architectures.
DANGER: ABI incompatibility. Updating to this kernel requires extra
work or you won't be able to login: install a snapshot instead.
Much assistance in fixing userland issues from deraadt@ and tedu@
and build assistance from todd@ and otto@
|
|
any useful information
|
|
|
|
|
|
with tweaks from jmc
|
|
Use clock_gettime(CLOCK_MONOTONIC) instead of gettimeofday() when measuring
time intervals for debugging output.
ok ratchov@
|
|
|
|
reset it and set par->appbufsz instead
|
|
|
|
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@
|
|
assuming it can send a full initial data buffer. This requires protocol
version bump (but no library version bump).
|
|
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.
|
|
to make both look similar
|
|
|
|
|
|
|
|
the mio_* functions. As per suggestion from jmc tidy up spacing in
RETURN VALUES section and Xr poll(2). ok jmc ratchov
|
|
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.
|
|
And don't document the return value of mio_pollfd() twice, one instance
of which was incorrect. ok jmc, ratchov
|
|
Makes "make build" build with WARNINGS=Yes on amd64.
ok espie
|
|
|
|
as NULL has. This will (hopefully) simplify ports where the user
passes the device string.
|
|
environment variable, so stop using the /dev/audio symlink which
can't be used by sndiod(1) anyway
|
|
suggested by deraadt@
|
|
from Tobias Ulmer (tobiasu at tmux.org); ok jmc@, krw@
|
|
|
|
|
|
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.
|
|
and fixed by Remco <remco at d-compu.dyndns.org>, thanks!
|
|
|
|
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
|
|
|
|
|
|
|