00001 /* 00002 ** Copyright (C) 2000 Albert L. Faber 00003 ** 00004 ** This program is free software; you can redistribute it and/or modify 00005 ** it under the terms of the GNU General Public License as published by 00006 ** the Free Software Foundation; either version 2 of the License, or 00007 ** (at your option) any later version. 00008 ** 00009 ** This program is distributed in the hope that it will be useful, 00010 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 ** GNU General Public License for more details. 00013 ** 00014 ** You should have received a copy of the GNU General Public License 00015 ** along with this program; if not, write to the Free Software 00016 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 */ 00018 00019 #ifndef INTERFACE_H_INCLUDED 00020 #define INTERFACE_H_INCLUDED 00021 00022 #ifdef __cplusplus 00023 extern "C" { 00024 #endif 00025 00026 #include "common.h" 00027 00028 BOOL InitMP3(PMPSTR mp); 00029 int decodeMP3(PMPSTR mp,unsigned char *inmemory,int inmemsize,char *outmemory,int outmemsize,int *done); 00030 void ExitMP3(PMPSTR mp); 00031 00032 /* added decodeMP3_unclipped to support returning raw floating-point values of samples. The representation 00033 of the floating-point numbers is defined in mpg123.h as #define real. It is 64-bit double by default. 00034 No more than 1152 samples per channel are allowed. */ 00035 int decodeMP3_unclipped(PMPSTR mp,unsigned char *inmemory,int inmemsize,char *outmemory,int outmemsize,int *done); 00036 00037 /* added remove_buf to support mpglib seeking */ 00038 void remove_buf(PMPSTR mp); 00039 00040 #ifdef __cplusplus 00041 } 00042 #endif 00043 00044 #endif 00045