lame.h   lame.h 
skipping to change at line 21 skipping to change at line 21
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; see the file COPYING. If not, write to * along with this program; see the file COPYING. If not, write to
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: lame.h,v 1.149 2003/12/03 03:09:40 olcios Exp $ */ /* $Id: lame.h,v 1.153 2004/03/23 01:57:16 olcios Exp $ */
#ifndef LAME_LAME_H #ifndef LAME_LAME_H
#define LAME_LAME_H #define LAME_LAME_H
#include <stdio.h> #include <stdio.h>
#include <stdarg.h> #include <stdarg.h>
#ifdef HAVE_MPGLIB
#define DECODE_ON_THE_FLY
#endif
#if defined(__cplusplus) #if defined(__cplusplus)
extern "C" { extern "C" {
#endif #endif
#if defined(WIN32) #if defined(WIN32)
#undef CDECL #undef CDECL
#define CDECL _cdecl #define CDECL _cdecl
#else #else
#define CDECL #define CDECL
#endif #endif
skipping to change at line 262 skipping to change at line 258
force_ms. Force M/S for all frames. For testing only. force_ms. Force M/S for all frames. For testing only.
default = 0 (disabled) default = 0 (disabled)
*/ */
int CDECL lame_set_force_ms(lame_global_flags *, int); int CDECL lame_set_force_ms(lame_global_flags *, int);
int CDECL lame_get_force_ms(const lame_global_flags *); int CDECL lame_get_force_ms(const lame_global_flags *);
/* use free_format? default = 0 (disabled) */ /* use free_format? default = 0 (disabled) */
int CDECL lame_set_free_format(lame_global_flags *, int); int CDECL lame_set_free_format(lame_global_flags *, int);
int CDECL lame_get_free_format(const lame_global_flags *); int CDECL lame_get_free_format(const lame_global_flags *);
/* perform ReplayGain analysis on input data? default = 0 (disabled) */ /* perform ReplayGain analysis? default = 0 (disabled) */
int CDECL lame_set_findReplayGain(lame_global_flags *, int);
int CDECL lame_get_findReplayGain(const lame_global_flags *);
/* decode on the fly. Search for the peak sample. If the ReplayGain
* analysis is enabled then perform the analysis on the decoded data
* stream. default = 0 (disabled)
* NOTE: if this option is set the build-in decoder should not be used */
int CDECL lame_set_decode_on_the_fly(lame_global_flags *, int);
int CDECL lame_get_decode_on_the_fly(const lame_global_flags *);
/* DEPRECATED: now does the same as lame_set_findReplayGain()
default = 0 (disabled) */
int CDECL lame_set_ReplayGain_input(lame_global_flags *, int); int CDECL lame_set_ReplayGain_input(lame_global_flags *, int);
int CDECL lame_get_ReplayGain_input(const lame_global_flags *); int CDECL lame_get_ReplayGain_input(const lame_global_flags *);
#ifdef DECODE_ON_THE_FLY /* DEPRECATED: now does the same as
/* perform ReplayGain analysis on decoded data? default = 0 (disabled) lame_set_decode_on_the_fly() && lame_set_findReplayGain()
* NOTE: this option enables decoding on the fly and therefore if it is default = 0 (disabled) */
* set the build-in decoder should not be used */
int CDECL lame_set_ReplayGain_decode(lame_global_flags *, int); int CDECL lame_set_ReplayGain_decode(lame_global_flags *, int);
int CDECL lame_get_ReplayGain_decode(const lame_global_flags *); int CDECL lame_get_ReplayGain_decode(const lame_global_flags *);
/* find peak sample? default = 0 (disabled) /* DEPRECATED: now does the same as lame_set_decode_on_the_fly()
* NOTE: this option enables decoding on the fly and therefore if it is default = 0 (disabled) */
* set the build-in decoder should not be used */
int CDECL lame_set_findPeakSample(lame_global_flags *, int); int CDECL lame_set_findPeakSample(lame_global_flags *, int);
int CDECL lame_get_findPeakSample(const lame_global_flags *); int CDECL lame_get_findPeakSample(const lame_global_flags *);
#endif
/* /*
* OPTIONAL: * OPTIONAL:
* Set printf like error/debug/message reporting functions. * Set printf like error/debug/message reporting functions.
* The second argument has to be a pointer to a function which looks like * The second argument has to be a pointer to a function which looks like
* void my_debugf(const char *format, va_list ap) * void my_debugf(const char *format, va_list ap)
* { * {
* (void) vfprintf(stdout, format, ap); * (void) vfprintf(stdout, format, ap);
* } * }
* If you use NULL as the value of the pointer in the set function, the * If you use NULL as the value of the pointer in the set function, the
skipping to change at line 533 skipping to change at line 538
/* number of frames encoded so far */ /* number of frames encoded so far */
int CDECL lame_get_frameNum(const lame_global_flags *); int CDECL lame_get_frameNum(const lame_global_flags *);
/* /*
lame's estimate of the total number of frames to be encoded lame's estimate of the total number of frames to be encoded
only valid if calling program set num_samples only valid if calling program set num_samples
*/ */
int CDECL lame_get_totalframes(const lame_global_flags *); int CDECL lame_get_totalframes(const lame_global_flags *);
/* RadioGain value */ /* RadioGain value. Multiplied by 10 and rounded to the nearest. */
int CDECL lame_get_RadioGain(const lame_global_flags *); int CDECL lame_get_RadioGain(const lame_global_flags *);
/* AudiophileGain value */ /* AudiophileGain value. Multipled by 10 and rounded to the nearest. */
int CDECL lame_get_AudiophileGain(const lame_global_flags *); int CDECL lame_get_AudiophileGain(const lame_global_flags *);
#ifdef DECODE_ON_THE_FLY
/* the peak sample */ /* the peak sample */
float CDECL lame_get_PeakSample(const lame_global_flags *); float CDECL lame_get_PeakSample(const lame_global_flags *);
/* is decoding on the fly going to be performed */ /* is decoding on the fly performed */
int CDECL lame_get_decode_on_the_fly(const lame_global_flags *); int CDECL lame_get_decode_on_the_fly(const lame_global_flags *);
#endif
/* is ReplayGain analysis performed */
int CDECL lame_get_findReplayGain(const lame_global_flags *);
/* Gain change required for preventing clipping. The value is correct only
if
peak sample searching was enabled. If negative then the waveform
already does not clip. The value is multiplied by 10 and rounded up. */
int CDECL lame_get_noclipGainChange(const lame_global_flags *);
/* user-specified scale factor required for preventing clipping. Value is
correct only if peak sample searching was enabled and no user-specified
scaling was performed. If negative then either the waveform already does
not clip or the value cannot be determined */
float CDECL lame_get_noclipScale(const lame_global_flags *);
/* /*
* REQUIRED: * REQUIRED:
* sets more internal configuration based on data provided above. * sets more internal configuration based on data provided above.
* returns -1 if something failed. * returns -1 if something failed.
*/ */
int CDECL lame_init_params(lame_global_flags * const ); int CDECL lame_init_params(lame_global_flags * const );
/* /*
* OPTIONAL: * OPTIONAL:
 End of changes. 11 change blocks. 
19 lines changed or deleted 37 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/