45 # ifdef LIBTWOLAME_BUILD 47 # define TL_API __declspec(dllexport) 52 # ifdef LIBTWOLAME_STATIC 55 # define TL_API __declspec(dllimport) 61 # define TL_API attribute ((visibility("default"))) 99 TWOLAME_MPEG_UNKNOWN = -1,
121 #define TWOLAME_SAMPLES_PER_FRAME (1152) 125 struct twolame_options_struct;
204 const short int leftpcm[],
205 const short int rightpcm[],
207 unsigned char *mp2buffer,
int mp2buffer_size);
224 const short int pcm[],
226 unsigned char *mp2buffer,
int mp2buffer_size);
247 const float leftpcm[],
248 const float rightpcm[],
250 unsigned char *mp2buffer,
int mp2buffer_size);
269 unsigned char *mp2buffer,
int mp2buffer_size);
285 unsigned char *mp2buffer,
int mp2buffer_size);
950 unsigned char *mp2buffer,
TL_API int twolame_set_VBR_max_bitrate_kbps(twolame_options *glopts, int bitrate)
TWOLAME_Padding
Definition: twolame.h:106
TL_API int twolame_get_original(twolame_options *glopts)
TL_API const char * twolame_get_version_name(twolame_options *glopts)
TWOLAME_MPEG_version
Definition: twolame.h:98
Definition: twolame.h:107
TL_API int twolame_get_out_samplerate(twolame_options *glopts)
TL_API int twolame_set_emphasis(twolame_options *glopts, TWOLAME_Emphasis emphasis)
TL_API int twolame_get_in_samplerate(twolame_options *glopts)
TL_API int twolame_set_version(twolame_options *glopts, TWOLAME_MPEG_version version)
TL_API int twolame_get_quick_mode(twolame_options *glopts)
TL_API int twolame_set_mode(twolame_options *glopts, TWOLAME_MPEG_mode mode)
TL_API int twolame_set_error_protection(twolame_options *glopts, int err_protection)
TL_API float twolame_get_VBR_level(twolame_options *glopts)
TL_API int twolame_get_num_channels(twolame_options *glopts)
TL_API int twolame_set_DAB_scf_crc_length(twolame_options *glopts)
TL_API int twolame_set_extension(twolame_options *glopts, int extension)
TL_API void twolame_print_config(twolame_options *glopts)
TL_API int twolame_set_scale_left(twolame_options *glopts, float scale)
TL_API int twolame_set_DAB(twolame_options *glopts, int dab)
TL_API const char * get_twolame_version(void)
TL_API int twolame_get_VBR(twolame_options *glopts)
TL_API int twolame_encode_buffer_interleaved(twolame_options *glopts, const short int pcm[], int num_samples, unsigned char *mp2buffer, int mp2buffer_size)
TWOLAME_MPEG_mode
Definition: twolame.h:81
TL_API float twolame_get_scale_left(twolame_options *glopts)
Definition: twolame.h:115
Definition: twolame.h:116
TL_API int twolame_set_ATH_level(twolame_options *glopts, float level)
TL_API int twolame_encode_flush(twolame_options *glopts, unsigned char *mp2buffer, int mp2buffer_size)
TL_API int twolame_set_out_samplerate(twolame_options *glopts, int samplerate)
TL_API int twolame_set_psymodel(twolame_options *glopts, int psymodel)
TL_API int twolame_get_psymodel(twolame_options *glopts)
TL_API int twolame_get_brate(twolame_options *glopts)
TL_API int twolame_get_VBR_max_bitrate_kbps(twolame_options *glopts)
TL_API int twolame_encode_buffer(twolame_options *glopts, const short int leftpcm[], const short int rightpcm[], int num_samples, unsigned char *mp2buffer, int mp2buffer_size)
Definition: twolame.h:100
TL_API int twolame_get_framelength(twolame_options *glopts)
TL_API float twolame_get_ATH_level(twolame_options *glopts)
TL_API int twolame_set_copyright(twolame_options *glopts, int copyright)
TL_API TWOLAME_MPEG_version twolame_get_version(twolame_options *glopts)
TL_API const char * twolame_get_mode_name(twolame_options *glopts)
TL_API int twolame_set_quick_mode(twolame_options *glopts, int quickmode)
Definition: twolame.h:114
TL_API TWOLAME_Padding twolame_get_padding(twolame_options *glopts)
TL_API int twolame_set_DAB_xpad_length(twolame_options *glopts, int length)
TL_API int twolame_set_in_samplerate(twolame_options *glopts, int samplerate)
TL_API int twolame_set_freeformat(twolame_options *glopts, int freef)
Definition: twolame.h:101
TWOLAME_Emphasis
Definition: twolame.h:113
TL_API int twolame_encode_buffer_float32(twolame_options *glopts, const float leftpcm[], const float rightpcm[], int num_samples, unsigned char *mp2buffer, int mp2buffer_size)
TL_API twolame_options * twolame_init(void)
Definition: twolame.h:108
TL_API int twolame_set_brate(twolame_options *glopts, int bitrate)
TL_API TWOLAME_MPEG_mode twolame_get_mode(twolame_options *glopts)
TL_API int twolame_set_energy_levels(twolame_options *glopts, int energylevels)
TL_API float twolame_get_scale(twolame_options *glopts)
TL_API int twolame_get_error_protection(twolame_options *glopts)
TL_API int twolame_get_quick_count(twolame_options *glopts)
TL_API TWOLAME_Emphasis twolame_get_emphasis(twolame_options *glopts)
TL_API int twolame_get_DAB_xpad_length(twolame_options *glopts)
TL_API int twolame_get_bitrate(twolame_options *glopts)
TL_API int twolame_get_DAB(twolame_options *glopts)
TL_API float twolame_get_scale_right(twolame_options *glopts)
TL_API int twolame_set_VBR(twolame_options *glopts, int vbr)
TL_API int twolame_set_num_channels(twolame_options *glopts, int num_channels)
TL_API int twolame_set_bitrate(twolame_options *glopts, int bitrate)
TL_API int twolame_get_copyright(twolame_options *glopts)
TL_API int twolame_set_DAB_scf_crc(twolame_options *glopts, unsigned char *mp2buffer, int mp2buffer_size)
TL_API const char * get_twolame_url(void)
TL_API int twolame_set_padding(twolame_options *glopts, TWOLAME_Padding padding)
TL_API void twolame_close(twolame_options **glopts)
TL_API int twolame_init_params(twolame_options *glopts)
TL_API int twolame_set_num_ancillary_bits(twolame_options *glopts, int num)
struct twolame_options_struct twolame_options
Definition: twolame.h:128
TL_API int twolame_get_energy_levels(twolame_options *glopts)
TL_API int twolame_set_scale(twolame_options *glopts, float scale)
TL_API int twolame_get_extension(twolame_options *glopts)
TL_API int twolame_set_scale_right(twolame_options *glopts, float scale)
TL_API int twolame_get_DAB_crc_length(twolame_options *glopts)
int twolame_encode_buffer_float32_interleaved(twolame_options *glopts, const float pcm[], int num_samples, unsigned char *mp2buffer, int mp2buffer_size)
TL_API int twolame_set_VBR_level(twolame_options *glopts, float level)
TL_API int twolame_set_original(twolame_options *glopts, int original)
TL_API int twolame_set_DAB_crc_length(twolame_options *glopts, int length)
TL_API int twolame_set_quick_count(twolame_options *glopts, int quickcount)
TL_API int twolame_get_num_ancillary_bits(twolame_options *glopts)
TL_API int twolame_set_verbosity(twolame_options *glopts, int verbosity)
TL_API int twolame_get_verbosity(twolame_options *glopts)