00001 /* 00002 * Command line frontend program 00003 * 00004 * Copyright (c) 1999 Mark Taylor 00005 * 2000 Takehiro TOMIANGA 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2 of the License, or (at your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Library General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with this library; if not, write to the 00019 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00020 * Boston, MA 02111-1307, USA. 00021 */ 00022 00023 00024 #ifdef HAVE_LIMITS_H 00025 # include <limits.h> 00026 #endif 00027 00028 #include "get_audio.h" 00029 00030 #ifndef PATH_MAX 00031 #define PATH_MAX 1024 00032 #endif 00033 00034 00035 /* GLOBAL VARIABLES used by parse.c and main.c. 00036 instantiated in parce.c. ugly, ugly */ 00037 extern sound_file_format input_format; 00038 extern int swapbytes; /* force byte swapping default=0 */ 00039 extern int silent; 00040 extern int brhist; 00041 00042 extern int mp3_delay; /* for decoder only */ 00043 extern int mp3_delay_set; /* for decoder only */ 00044 extern float update_interval; /* to use Frank's time status display */ 00045 extern int disable_wav_header; /* for decoder only */ 00046 extern mp3data_struct mp3input_data; /* used by MP3 */ 00047 extern int print_clipping_info; /* print info whether waveform clips */ 00048 extern int in_signed; 00049 extern int in_unsigned; 00050 #define order_littleEndian 0 00051 #define order_bigEndian 1 00052 #define order_unknown 2 00053 extern int in_endian; 00054 extern int in_bitwidth; 00055 extern int flush_write; 00056 00057 #define Min(A, B) ((A) < (B) ? (A) : (B)) 00058 #define Max(A, B) ((A) > (B) ? (A) : (B))