1 /* flac - Command-line FLAC encoder/decoder
2 * Copyright (C) 2000,2001,2002,2003 Josh Coalson
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 #ifndef flac__decode_h
20 #define flac__decode_h
31 FLAC__bool continue_through_decode_errors;
34 FLAC__bool use_first_serial_number;
37 utils__SkipUntilSpecification skip_specification;
38 utils__SkipUntilSpecification until_specification;
41 /* used for AIFF also */
43 decode_options_t common;
44 } wav_decode_options_t;
47 decode_options_t common;
49 FLAC__bool is_big_endian;
50 FLAC__bool is_unsigned_samples;
51 } raw_decode_options_t;
53 /* outfile == 0 => test only */
54 int flac__decode_aiff(const char *infilename, const char *outfilename, FLAC__bool analysis_mode, analysis_options aopts, wav_decode_options_t options);
55 int flac__decode_wav(const char *infilename, const char *outfilename, FLAC__bool analysis_mode, analysis_options aopts, wav_decode_options_t options);
56 int flac__decode_raw(const char *infilename, const char *outfilename, FLAC__bool analysis_mode, analysis_options aopts, raw_decode_options_t options);