precomp-cpp/contrib/packmp3/precomp_mp3.h
Christian Schneider 7fc569949e Increase JPG/MP3 in-memory threshold
- maximum size 512 MB instead of 64 MB
- verbose output if JPGs are too large for in-memory (and packJPG is used as fallback)
2019-11-07 00:14:21 +01:00

16 lines
730 B
C

#include "../packjpg/bitops.h" // for MBITS
#define PRECOMP_MP3 // to avoid compiler warnings (unused variables), use only a part of the header file
#include "pmp3tbl.h"
#undef PRECOMP_MP3
#define MP3_MAX_MEMORY_SIZE 512 * 1024 * 1024
// function to convert MP3 to PMP and vice versa, file to file
bool pmplib_convert_file2file( char* in, char* out, char* msg );
// functions to convert MP3 to PMP and vice versa, in memory
void pmplib_init_streams( void* in_src, int in_type, int in_size, void* out_dest, int out_type );
bool pmplib_convert_stream2mem( unsigned char** out_file, unsigned int* out_size, char* msg );
// this function writes versioninfo for the packMP3 DLL to a string
const char* pmplib_version_info( void );