1 /*
2  *  TwoLAME: an optimized MPEG Audio Layer Two encoder
3  *
4  *  Copyright (C) 2004-2018 The TwoLAME Project
5  *
6  *  This library is free software; you can redistribute it and/or
7  *  modify it under the terms of the GNU Lesser General Public
8  *  License as published by the Free Software Foundation; either
9  *  version 2.1 of the License, or (at your option) any later version.
10  *
11  *  This library is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  *  Lesser General Public License for more details.
15  *
16  *  You should have received a copy of the GNU Lesser General Public
17  *  License along with this library; if not, write to the Free Software
18  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  *
20  */
21 
22 
23 /*
24   Constants
25 */
26 #define MP2_BUF_SIZE         (16384)
27 #define AUDIO_BUF_SIZE       (9210)
28 #define MAX_NAME_SIZE        (1024)
29 #define OUTPUT_SUFFIX        ".mp2"
30 #define DEFAULT_CHANNELS     (2)
31 #define DEFAULT_SAMPLERATE   (44100)
32 #define DEFAULT_SAMPLESIZE   (16)
33 
34 
35 /*
36   Result codes
37 */
38 #define ERR_NO_ERROR         (0) // No Error (encoded ok)
39 #define ERR_NO_ENCODE        (1) // No Error (no encoding performed)
40 #define ERR_OPENING_INPUT    (2) // Error opening input file
41 #define ERR_OPENING_OUTPUT   (4) // Error opening output file
42 #define ERR_MEM_ALLOC        (6) // Error allocating memory
43 #define ERR_INVALID_PARAM    (8) // Error in chosen encoding parameters
44 #define ERR_READING_INPUT    (10)    // Error reading input
45 #define ERR_ENCODING         (12)    // Error occurred during encoding
46 #define ERR_WRITING_OUTPUT   (14)    // Error occurred writing to output file
47 
48