Add Russian translation provided by Валерий Крувялис <valkru@mail.ru>
[xiph-mirror.git] / spectrum / io.h
blob8b62fbafc6eace46a8cf5851bcf22868ba583af9
1 /*
3 * gtk2 spectrum analyzer
4 *
5 * Copyright (C) 2004-2012 Monty
7 * This analyzer is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
10 * any later version.
12 * The analyzer is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Postfish; see the file COPYING. If not, write to the
19 * Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
24 #ifndef _IO_H_
25 #define _IO_H_
27 #ifndef _GNU_SOURCE
28 #define _GNU_SOURCE
29 #define _ISOC99_SOURCE
30 #define _FILE_OFFSET_BITS 64
31 #define _REENTRANT 1
32 #define __USE_GNU 1
33 #endif
35 #include <stdlib.h>
36 #include <unistd.h>
37 #include <stdio.h>
38 #include <errno.h>
39 #include <string.h>
40 #include <pthread.h>
41 #include <string.h>
42 #include <math.h>
43 #include <signal.h>
44 #include <fcntl.h>
46 #define MAX_FILES 16
47 extern pthread_mutex_t blockbuffer_mutex;
49 extern int input_load(void);
50 extern int pipe_reload(void);
51 extern int input_read(int loop_p, int partial_p);
52 extern int rewind_files(void);
54 extern int inputs;
55 extern int total_ch;
57 extern int bits[MAX_FILES];
58 extern int bigendian[MAX_FILES];
59 extern int channels[MAX_FILES];
60 extern int rate[MAX_FILES];
61 extern int signedp[MAX_FILES];
62 extern int bits_force[MAX_FILES];
63 extern int bigendian_force[MAX_FILES];
64 extern int channels_force[MAX_FILES];
65 extern int rate_force[MAX_FILES];
66 extern int signed_force[MAX_FILES];
68 extern char *inputname[MAX_FILES];
69 extern int seekable[MAX_FILES];
70 extern int global_seekable;
72 extern sig_atomic_t blockslice_frac;
73 extern int blockslice_count;
74 extern int blockslice_cursor[MAX_FILES];
75 extern int blockslice_eof[MAX_FILES];
76 extern int blockslice_adv[MAX_FILES];
77 extern int blockbufferfill[MAX_FILES];
78 extern int blockbuffernew[MAX_FILES];
79 extern float **blockbuffer;
80 #endif