In memory compiler for VGS MMLs
struct VgsBgmData
{
void* data;
size_t size;
};
struct VgsMmlErrorInfo
{
int code; /* error code */
int line; /* MML's line number (0: not syntax error) */
char message[248];
};
struct VgsBgmData* vgsmml_compile_from_file(const char* path, struct VgsMmlErrorInfo* err);
struct VgsBgmData* vgsmml_compile_from_memory(void* data, size_t size, struct VgsMmlErrorInfo* err);
void vgsmml_free_bgm_data(struct VgsBgmData* data);
mml
: path of a MML filedata
: pointer of loaded MML filesize
: size of dataerr
: stores error information (must not NULL)
- NULL: failed
- !NULL: success