1 /**********************************************************
2  *
3  * libmp3splt -- library based on mp3splt,
4  *               for mp3/ogg splitting without decoding
5  *
6  * Copyright (c) 2002-2005 M. Trotta - <mtrotta@users.sourceforge.net>
7  * Copyright (c) 2005-2014 Alexandru Munteanu - m@ioalex.net
8  *
9  * http://mp3splt.sourceforge.net
10  *
11  *********************************************************/
12 
13 /**********************************************************
14  *
15  * This program is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU General Public License
17  * as published by the Free Software Foundation; either version 2
18  * of the License, or (at your option) any later version.
19  *
20  * This program is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23  * GNU General Public License for more details.
24  *
25  * You should have received a copy of the GNU General Public License
26  * along with this program; if not, write to the Free Software
27  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
28  * USA.
29  *
30  *********************************************************/
31 
32 #ifndef MP3SPLT_FLAC_SILENCE_H
33 
34 #include "flac.h"
35 #include "silence_processors.h"
36 #include "splt.h"
37 
38 int splt_flac_scan_silence(splt_state *state, off_t start_offset, unsigned long length,
39     float threshold, float min, int shots, short output, int *error,
40     short silence_processor(double time, float level, int silence_was_found, short must_flush,
41       splt_scan_silence_data *ssd, int *found, int *error));
42 
43 typedef struct {
44   int error;
45   splt_state *state;
46   splt_flac_state *flacstate;
47   double time;
48   int silence_found;
49   float threshold;
50 } splt_flac_silence_data;
51 
52 #define MP3SPLT_FLAC_SILENCE_H
53 
54 #endif
55 
56