summaryrefslogtreecommitdiffstats
path: root/usr.sbin/hoststatectl/parser.c
diff options
context:
space:
mode:
authorjakemsr <jakemsr@openbsd.org>2007-09-28 01:15:15 +0000
committerjakemsr <jakemsr@openbsd.org>2007-09-28 01:15:15 +0000
commit64371f1121ee97fdfb1164edb8d275a189c63af7 (patch)
tree92af7eb5f0b8faeb1a003e8b3ef62fae41e57fa1 /usr.sbin/hoststatectl/parser.c
parentAdd missing "s" to https check description. (diff)
downloadwireguard-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