removed "bool" occurence.
[swftools.git] / lib / bladeenc / codec.h
blob63a48ba1bfb47fc6535e7e415d2dd5a7541c113a
1 /*
2 (c) Copyright 1998-2000 - Tord Jansson
3 ======================================
5 This file is part of the BladeEnc MP3 Encoder, based on
6 ISO's reference code for MPEG Layer 3 compression.
8 This file doesn't contain any of the ISO reference code and
9 is copyright Tord Jansson (tord.jansson@swipnet.se).
11 BladeEnc is free software; you can redistribute this file
12 and/or modify it under the terms of the GNU Lesser General Public
13 License as published by the Free Software Foundation; either
14 version 2.1 of the License, or (at your option) any later version.
18 ------------ CHANGES ------------
20 2000-12-10 Andre Piotrowski
22 - reformatted
25 #ifndef __CODEC__
26 #define __CODEC__
32 typedef struct
34 int frequency; /* 48000, 44100 and 32000 allowed. */
35 int mode; /* 0 = Stereo, 2 = Dual Channel, 3 = Mono */
36 int bitrate;
37 int emphasis; /* 0 = None, 1 = 50/15 microsec, 3 = CCITT J.17 */
38 int fPrivate;
39 int fCRC;
40 int fCopyright;
41 int fOriginal;
42 } CodecInitIn;
45 typedef struct
47 int nSamples;
48 int bufferSize;
49 } CodecInitOut;
53 extern CodecInitOut *codecInit (CodecInitIn *psInitData);
55 extern unsigned int codecEncodeChunk (int nSamples, short *pSamples, char *pOutput);
57 extern unsigned int codecExit (char *pOutput);
59 extern unsigned int codecFlush (char *pOutput);
65 #endif /* __CODEC__ */