2013-11-01 19:24:59 +00:00
|
|
|
/*
|
|
|
|
UNMO3 library C/C++ header file
|
|
|
|
Copyright (c) 2010-2013 Un4seen Developments Ltd.
|
|
|
|
|
|
|
|
Free for non-commercial use
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _WIN32
|
|
|
|
#define WINAPI
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// Get the UNMO3 library version
|
2014-01-06 03:10:19 +00:00
|
|
|
unsigned WINAPI UNMO3_GetVersion();
|
2013-11-01 19:24:59 +00:00
|
|
|
|
|
|
|
// Decode a MO3 file
|
|
|
|
// in: data/len = MO3 data/len
|
|
|
|
// out: data/len = decoded data/len (if successful)
|
|
|
|
// return: 0 = Success, 2 = It isn't a MO3 file, 3 = There was a problem decoding the MO3 file
|
2014-01-06 03:10:19 +00:00
|
|
|
int WINAPI UNMO3_Decode(void **data, unsigned *len, unsigned flags);
|
2013-11-01 19:24:59 +00:00
|
|
|
|
|
|
|
// UNMO3_Decode flags
|
|
|
|
#define UNMO3_DECODE_NOSAMPLES 1 // don't process sample data
|
|
|
|
|
|
|
|
// Free the data returned by UNMO3_Decode
|
|
|
|
void WINAPI UNMO3_Free(void *data);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|