Add sio_flush(3) function to stop playback immediately
authorratchov <ratchov@openbsd.org>
Fri, 29 Apr 2022 08:30:48 +0000 (08:30 +0000)
committerratchov <ratchov@openbsd.org>
Fri, 29 Apr 2022 08:30:48 +0000 (08:30 +0000)
commitec8a3410fbf86966d4e84ce53a01458ea2cd5c80
tree83fd3200aed80c47c2f9a7a94447ac255b4e00bf
parent1f8040da2867dfb4ab58498af5622dc9b22ffe62
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.
include/sndio.h
lib/libsndio/Symbols.map
lib/libsndio/amsg.h
lib/libsndio/shlib_version
lib/libsndio/sio.c
lib/libsndio/sio_aucat.c
lib/libsndio/sio_open.3
lib/libsndio/sio_priv.h
lib/libsndio/sio_sun.c
usr.bin/sndiod/siofile.c
usr.bin/sndiod/sock.c