summaryrefslogtreecommitdiff
path: root/usr.bin/aucat/aproc.h
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2008-11-04 17:51:47 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2008-11-04 17:51:47 +0000
commitdd5a31b3caeb12a7496319fa0f8f13d594da8ac4 (patch)
treee551cc7ceaec86e474fbb592ec3eb8650ec68692 /usr.bin/aucat/aproc.h
parentb911df0342e2742523a2f753b0dbd19617e3f53f (diff)
add "new" conversion code to map any channel range into any other
channel range (based on the encoding conversion code). Will allow to unentangle channel mapping from encoding conversion. As a side effect, greatly reduces CPU usage for channel mapping. No functionnal change.
Diffstat (limited to 'usr.bin/aucat/aproc.h')
-rw-r--r--usr.bin/aucat/aproc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/aucat/aproc.h b/usr.bin/aucat/aproc.h
index 83347eeb7d9..df45280bb66 100644
--- a/usr.bin/aucat/aproc.h
+++ b/usr.bin/aucat/aproc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: aproc.h,v 1.8 2008/11/04 15:22:40 ratchov Exp $ */
+/* $OpenBSD: aproc.h,v 1.9 2008/11/04 17:51:46 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -165,6 +165,9 @@ struct aproc {
int ipos, opos;
int idelta, odelta; /* reminder of conv_[io]pos */
} resamp;
+ struct {
+ short ctx[NCHAN_MAX];
+ } cmap;
} u;
};
@@ -191,6 +194,7 @@ struct aproc *mix_new(char *, int);
struct aproc *sub_new(char *, int);
struct aproc *conv_new(char *, struct aparams *, struct aparams *);
struct aproc *resamp_new(char *, struct aparams *, struct aparams *);
+struct aproc *cmap_new(char *, struct aparams *, struct aparams *);
void mix_pushzero(struct aproc *);
void mix_setmaster(struct aproc *);