TAndroidLame
TAndroidLame copied to clipboard
ID3 tag only saves first char
id3 tags only writes first char of string. I'm compiling with AS 3.1.3 NDK 17.1.* JRE 1.8.0.*
Changing jchar to char in AndroidLame.c makes it work
eg. for title:
const jchar *title = NULL; ... title = (*env)->GetStringChars(env, id3tagTitle, NULL); ... id3tag_set_title(glf, (const char *) title); (*env)->ReleaseStringChars(env, id3tagTitle, title); ...
to
const char *title = NULL; ... title = (*env)->GetStringUTFChars(env, id3tagTitle, NULL); ... id3tag_set_title(glf, title); (*env)->ReleaseStringUTFChars(env, id3tagTitle, title); ...