From 122ebd30c24a1bbcc01712945fe70a9507035d0e Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Mon, 10 Nov 2008 23:25:38 +0000 Subject: add a per-stream ``soft volume'' knob and the corresponding -v option. The code will be useful later for the volume knob in the sndio API. --- usr.bin/aucat/abuf.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.bin/aucat/abuf.h') diff --git a/usr.bin/aucat/abuf.h b/usr.bin/aucat/abuf.h index ca45674873d..22b052aad2d 100644 --- a/usr.bin/aucat/abuf.h +++ b/usr.bin/aucat/abuf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: abuf.h,v 1.12 2008/11/09 16:26:07 ratchov Exp $ */ +/* $OpenBSD: abuf.h,v 1.13 2008/11/10 23:25:37 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov * @@ -32,7 +32,8 @@ struct abuf { * there can be only one aproc that absorbs xruns in any * intput->output path. */ - int mixivol; /* volume of the source stream */ + int mixweight; /* volume of the source stream */ + unsigned mixvol; /* volume in the range defined by wight */ unsigned mixodone; /* bytes done on the dest stream */ unsigned mixitodo; /* bytes to do on the source stream */ unsigned subidone; /* bytes copied from the source stream */ -- cgit v1.2.3