summaryrefslogtreecommitdiff
path: root/usr.bin/audioctl
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2008-03-22 11:05:32 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2008-03-22 11:05:32 +0000
commit459f96c4328c48b75b15931287d6093f8e12d6d1 (patch)
treeb7fdc24f0e8ec7e305bffa5d62967c2c6566601c /usr.bin/audioctl
parent34af340895da0cb69ddf3235e4c619bcfcf97172 (diff)
add audio(4) driver the ability to use different block sizes for play and
record modes. This makes possible to have blocks of the same duration if the play and record formats are different. The API change is backward compatible, so it shouldn't be noticed by current audio ports. ok jakemsr
Diffstat (limited to 'usr.bin/audioctl')
-rw-r--r--usr.bin/audioctl/audioctl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/audioctl/audioctl.c b/usr.bin/audioctl/audioctl.c
index e00089864de..04305859c70 100644
--- a/usr.bin/audioctl/audioctl.c
+++ b/usr.bin/audioctl/audioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: audioctl.c,v 1.16 2007/11/26 13:36:34 deraadt Exp $ */
+/* $OpenBSD: audioctl.c,v 1.17 2008/03/22 11:05:31 ratchov Exp $ */
/* $NetBSD: audioctl.c,v 1.14 1998/04/27 16:55:23 augustss Exp $ */
/*
@@ -117,6 +117,7 @@ struct field {
{ "play.open", &info.play.open, UCHAR, READONLY },
{ "play.active", &info.play.active, UCHAR, READONLY },
{ "play.buffer_size", &info.play.buffer_size, UINT, 0 },
+ { "play.block_size", &info.play.block_size, UINT, 0 },
{ "record.rate", &info.record.sample_rate,UINT, 0 },
{ "record.sample_rate", &info.record.sample_rate,UINT, ALIAS },
{ "record.channels", &info.record.channels, UINT, 0 },
@@ -135,6 +136,7 @@ struct field {
{ "record.open", &info.record.open, UCHAR, READONLY },
{ "record.active", &info.record.active, UCHAR, READONLY },
{ "record.buffer_size", &info.record.buffer_size,UINT, 0 },
+ { "record.block_size", &info.record.block_size,UINT, 0 },
{ "record.errors", &rerror, INT, READONLY },
{ 0 }
};