patch-pre2.0.6 linux/drivers/isdn/isdn_audio.h
Next file: linux/drivers/isdn/isdn_common.c
Previous file: linux/drivers/isdn/isdn_audio.c
Back to the patch index
Back to the overall index
- Lines: 44
- Date:
Sun May 19 15:29:29 1996
- Orig file:
pre2.0.5/linux/drivers/isdn/isdn_audio.h
- Orig date:
Thu Jan 1 02:00:00 1970
diff -u --recursive --new-file pre2.0.5/linux/drivers/isdn/isdn_audio.h linux/drivers/isdn/isdn_audio.h
@@ -0,0 +1,43 @@
+/* $Id: isdn_audio.h,v 1.2 1996/05/10 08:48:32 fritz Exp $
+ *
+ * Linux ISDN subsystem, audio conversion and compression (linklevel).
+ *
+ * Copyright 1994,95,96 by Fritz Elfert (fritz@wuemaus.franken.de)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+ * $Log: isdn_audio.h,v $
+ * Revision 1.2 1996/05/10 08:48:32 fritz
+ * Corrected adpcm bugs.
+ *
+ * Revision 1.1 1996/04/30 09:29:06 fritz
+ * Taken under CVS control.
+ *
+ */
+
+typedef struct adpcm_state {
+ int a;
+ int d;
+ int word;
+ int nleft;
+ int nbits;
+} adpcm_state;
+
+extern void isdn_audio_ulaw2alaw(unsigned char *, unsigned long);
+extern void isdn_audio_alaw2ulaw(unsigned char *, unsigned long);
+extern adpcm_state *isdn_audio_adpcm_init(int);
+extern int isdn_audio_adpcm2xlaw(adpcm_state *, int, unsigned char *, unsigned char *, int);
+extern int isdn_audio_xlaw2adpcm(adpcm_state *, int, unsigned char *, unsigned char *, int);
+extern int isdn_audio_2adpcm_flush(adpcm_state *s, unsigned char *out);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this