| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.
|
| | |
|
| |
|
|
|
|
|
| |
with artificial complications caused by the old api. No behaviour
change.
ok armani, semarie
|
| | |
|
| |
|
|
| |
ports using existing file descriptors.
|
| | |
|
| |
|
|
|
| |
it to the *_open() functions. It's more flexible this way. No behaviour
change.
|
| |
|
|
|
|
| |
the device node, the other to do the initialization. This will allow
with minimal changes, work to be done in two process sharing the fd.
No behaviour change.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
strings. No object change.
|
| |
|
|
|
| |
AUDIO_xERROR. It returns a snapshot of the counters we need
and avoids inconsistencies.
|
| |
|
|
|
| |
record side than on the play side. This almost never happens are record
buffer are much larger than play buffers.
|
| |
|
|
| |
device names. Remove wrong comments.
|
| |
|
|
| |
by stu@, thanks!
|
| |
|
|
|
|
|
| |
on it, simplifying error checking, reducing system calls, and improving
thread-safety for libraries.
ok miod@
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| | |
|
| |
|
|
| |
ok deraadt, guenther
|
| |
|
|
|
| |
the the generic code, so it can be used by other back-ends as well.
No behavior change (hopefully).
|
| |
|
|
|
| |
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.
|
| |
|
|
| |
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.
|
| |
|
|
|
| |
code. This is simpler as long as not all backends use the same
default.
|
| |
|
|
|
|
| |
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.
|
|
|
audio-related functions and put them in files named sio_<backend>.c
No behaviour changes.
|