From 7087f712b5254a8e3042132f050d8e0c1fe4977c Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Fri, 29 Apr 2022 08:30:49 +0000 Subject: 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. --- lib/libsndio/amsg.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/libsndio/amsg.h') 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 * @@ -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; -- cgit v1.2.3