diff options
author | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2007-10-23 19:54:37 +0000 |
---|---|---|
committer | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2007-10-23 19:54:37 +0000 |
commit | a3f84490b21b997c4a0b538d29c25f6e5cf95a59 (patch) | |
tree | 16f819913cc7aaf90bc04be82685f60e883f3c39 /sys/dev/mulaw.h | |
parent | 62dc01380e92e90afcbb823f11321e091881b8bf (diff) |
- add a couple more mono-to-stereo conversions
- add stereo-to-mono conversions for mono recording
on stereo only devices
Diffstat (limited to 'sys/dev/mulaw.h')
-rw-r--r-- | sys/dev/mulaw.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/mulaw.h b/sys/dev/mulaw.h index 6d2c2d54828..1ec76461198 100644 --- a/sys/dev/mulaw.h +++ b/sys/dev/mulaw.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mulaw.h,v 1.12 2005/04/14 01:24:20 pascoe Exp $ */ +/* $OpenBSD: mulaw.h,v 1.13 2007/10/23 19:54:36 jakemsr Exp $ */ /* $NetBSD: mulaw.h,v 1.11 1999/11/01 18:12:19 augustss Exp $ */ /*- @@ -75,6 +75,12 @@ extern void slinear8_to_alaw(void *, u_char *, int); /* Convert 8-bit a-law to/from mulaw */ void alaw_to_mulaw(void *, u_char *, int); void mulaw_to_alaw(void *, u_char *, int); +/* Convert 16-bit signed linear stereo to 8-bit a-law mono */ +void slinear16_to_alaw_le_stm(void *, u_char *, int); +void slinear16_to_alaw_be_stm(void *, u_char *, int); +/* Convert 16-bit signed linear stereo to 8-bit mu-law mono */ +void slinear16_to_mulaw_le_stm(void *, u_char *, int); +void slinear16_to_mulaw_be_stm(void *, u_char *, int); /* backwards compat for now */ #if BYTE_ORDER == LITTLE_ENDIAN |