diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2022-04-29 08:30:49 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2022-04-29 08:30:49 +0000 |
commit | 7087f712b5254a8e3042132f050d8e0c1fe4977c (patch) | |
tree | 97b016c25ba0ad1b923f39f3a7bf6fc6455179eb /lib/libsndio/amsg.h | |
parent | 6ed8231ad9b7b5ac2bab782d137d6368b65e3715 (diff) |
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.
Diffstat (limited to 'lib/libsndio/amsg.h')
-rw-r--r-- | lib/libsndio/amsg.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libsndio/amsg.h b/lib/libsndio/amsg.h index 6dfb6954764..6d1a185fcbf 100644 --- a/lib/libsndio/amsg.h +++ b/lib/libsndio/amsg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: amsg.h,v 1.14 2021/11/01 14:43:24 ratchov Exp $ */ +/* $OpenBSD: amsg.h,v 1.15 2022/04/29 08:30:48 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -96,6 +96,9 @@ struct amsg { #define AMSG_DATAMAX 0x1000 uint32_t size; } data; + struct amsg_stop { + uint8_t drain; + } stop; struct amsg_ts { int32_t delta; } ts; |