summaryrefslogtreecommitdiff
path: root/sys/src/cmd/audio/libvorbis/lpc.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@rei2.9hal>2012-01-22 23:30:34 +0100
committercinap_lenrek <cinap_lenrek@rei2.9hal>2012-01-22 23:30:34 +0100
commit5524d7607501020ca891436dfbcd88aaf5d15bdf (patch)
treec82e7714e5f0b4b74ccb716daba88a8c831b04cf /sys/src/cmd/audio/libvorbis/lpc.h
parent29b26a2f175b3fe4329c121eca4c7cbb383f5e28 (diff)
move mp3 stuff to /sys/src/cmd/audio, add ogg vorbis, add play
Diffstat (limited to 'sys/src/cmd/audio/libvorbis/lpc.h')
-rw-r--r--sys/src/cmd/audio/libvorbis/lpc.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/sys/src/cmd/audio/libvorbis/lpc.h b/sys/src/cmd/audio/libvorbis/lpc.h
new file mode 100644
index 000000000..366226a17
--- /dev/null
+++ b/sys/src/cmd/audio/libvorbis/lpc.h
@@ -0,0 +1,43 @@
+/********************************************************************
+ * *
+ * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
+ * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
+ * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
+ * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
+ * *
+ * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002 *
+ * by the XIPHOPHORUS Company http://www.xiph.org/ *
+ * *
+ ********************************************************************
+
+ function: LPC low level routines
+ last mod: $Id: lpc.h,v 1.19 2002/07/11 06:40:49 xiphmont Exp $
+
+ ********************************************************************/
+
+#ifndef _V_LPC_H_
+#define _V_LPC_H_
+
+#include "vorbis/codec.h"
+#include "smallft.h"
+
+typedef struct lpclook{
+ /* en/decode lookups */
+ drft_lookup fft;
+
+ int ln;
+ int m;
+
+} lpc_lookup;
+
+extern void lpc_init(lpc_lookup *l,long mapped, int m);
+extern void lpc_clear(lpc_lookup *l);
+
+/* simple linear scale LPC code */
+extern float vorbis_lpc_from_data(float *data,float *lpc,int n,int m);
+extern float vorbis_lpc_from_curve(float *curve,float *lpc,lpc_lookup *l);
+
+extern void vorbis_lpc_predict(float *coeff,float *prime,int m,
+ float *data,long n);
+
+#endif