diff Plugins/Input/mpg123/mpg123.h @ 127:05d824e30afd trunk

[svn] Synchronize mpg123 code with mpg123-0.59s.mc3. This brings us superior accuracy to libMAD, apparently.
author nenolod
date Wed, 09 Nov 2005 16:40:03 -0800
parents fa848bd484d8
children a008c0b15ac8
line wrap: on
line diff
--- a/Plugins/Input/mpg123/mpg123.h	Tue Nov 08 12:04:15 2005 -0800
+++ b/Plugins/Input/mpg123/mpg123.h	Wed Nov 09 16:40:03 2005 -0800
@@ -45,6 +45,18 @@
 
 #define         ENCODING_SEPARATOR      " ,:;|/"
 
+#define		MAXFRAMESIZE		4096
+
+#define		DOUBLE_TO_REAL(x)	(x)
+#define		REAL_MUL(x, y)		(x * y)
+
+#ifndef REAL_PLUS_32767
+# define REAL_PLUS_32767        32767.0
+#endif
+#ifndef REAL_MINUS_32768
+# define REAL_MINUS_32768       -32768.0
+#endif
+
 struct id3v1tag_t {
     char tag[3];                /* always "TAG": defines ID3v1 tag 128 bytes before EOF */
     char title[30];
@@ -159,6 +171,26 @@
 
 extern struct bitstream_info bsi;
 
+struct mpstr {
+  int bsize;
+  int framesize;
+  int fsizeold;
+  struct frame fr;
+ /* int (*do_layer)(struct mpstr *,struct frame *fr,int,struct audio_info_struct *); */
+  unsigned char bsspace[2][MAXFRAMESIZE+512]; /* MAXFRAMESIZE */
+  real hybrid_block[2][2][SBLIMIT*SSLIMIT];
+  int  hybrid_blc[2];
+  unsigned long header;
+  int bsnum;
+  real synth_buffs[2][2][0x110];
+  int  synth_bo;
+
+  struct bitstream_info bsi;
+};
+
+
+#define AUSHIFT		3
+
 /* ------ Declarations from "http.c" ------ */
 
 extern int mpg123_http_open(char *url);