summaryrefslogtreecommitdiff
path: root/regress/sys/dev/audio/adpcm.h
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2003-02-01 17:58:19 +0000
committerJason Wright <jason@cvs.openbsd.org>2003-02-01 17:58:19 +0000
commit979f6a882bc0d78a80ff1c4c6a57f06b7027a2b0 (patch)
tree73862c583c1b9c2ee8f2b848ed23414553afe812 /regress/sys/dev/audio/adpcm.h
parent315df967df0885612fe70a456e0d3600c839490d (diff)
audio encoding tester
Diffstat (limited to 'regress/sys/dev/audio/adpcm.h')
-rw-r--r--regress/sys/dev/audio/adpcm.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/regress/sys/dev/audio/adpcm.h b/regress/sys/dev/audio/adpcm.h
new file mode 100644
index 00000000000..ee8ab459acd
--- /dev/null
+++ b/regress/sys/dev/audio/adpcm.h
@@ -0,0 +1,21 @@
+/* $OpenBSD: adpcm.h,v 1.1.1.1 2003/02/01 17:58:18 jason Exp $ */
+
+/*
+** adpcm.h - include file for adpcm coder.
+**
+** Version 1.0, 7-Jul-92.
+*/
+
+struct adpcm_state {
+ int16_t valprev; /* Previous output value */
+ char index; /* Index into stepsize table */
+};
+
+#ifdef __STDC__
+#define ARGS(x) x
+#else
+#define ARGS(x) ()
+#endif
+
+void adpcm_coder ARGS((int16_t [], char [], int, struct adpcm_state *));
+void adpcm_decoder ARGS((char [], int16_t [], int, struct adpcm_state *));