diff options
author | 2007-09-28 01:15:15 +0000 | |
---|---|---|
committer | 2007-09-28 01:15:15 +0000 | |
commit | 64371f1121ee97fdfb1164edb8d275a189c63af7 (patch) | |
tree | 92af7eb5f0b8faeb1a003e8b3ef62fae41e57fa1 /usr.sbin/hoststatectl/parser.c | |
parent | Add missing "s" to https check description. (diff) | |
download | wireguard-openbsd-64371f1121ee97fdfb1164edb8d275a189c63af7.tar.xz wireguard-openbsd-64371f1121ee97fdfb1164edb8d275a189c63af7.zip |
implement SNDCTL_DSP_[G|S]ETTRIGGER
SNDCTL_DSP_SETTRIGGER is used to pause and unpause recording and
playback data transfers. SNDCTL_DSP_GETTRIGGER returns the paused
states.
this implementation of SNDCTL_DSP_SETTRIGGER also sets the audio(4)
mode (AUMODE_[PLAY|RECORD]), depending on which direction (play, record
or both) is to be triggered.
this can be used allow OSS audio programs to work in full-duplex
mode without changing the audio(4) layer itself. according to
OSS docs, SNDCTL_DSP_SETTRIGGER is a fairly important ioctl, and
should be used "when even the first read() cannot block."
tested to not break any ports currently using SNDCTL_DSP_SETTRIGGER
which has been a no-op for quite some time.
ok ratchov
Diffstat (limited to 'usr.sbin/hoststatectl/parser.c')
0 files changed, 0 insertions, 0 deletions