Sets the complex property key with value. Use value = null to remove the property, otherwise it will be replaced with the null terminated array of attributes in value.
A picture can be set with the TAGLIB_COMPLEX_PROPERTY_PICTURE macro:
\code {.c} TagLib_File* file = taglib_file_new("myfile.mp3"); FILE *fh = fopen("mypicture.jpg", "rb"); if(fh) { fseek(fh, 0L, SEEK_END); long size = ftell(fh); fseek(fh, 0L, SEEK_SET); char *data = (char *)malloc(size); fread(data, size, 1, fh); TAGLIB_COMPLEX_PROPERTY_PICTURE(props, data, size, "Written by TagLib", "image/jpeg", "Front Cover"); taglib_complex_property_set(file, "PICTURE", props); taglib_file_save(file); free(data); fclose(fh); } \endcode
Sets the complex property key with value. Use value = null to remove the property, otherwise it will be replaced with the null terminated array of attributes in value.
A picture can be set with the TAGLIB_COMPLEX_PROPERTY_PICTURE macro:
\code {.c} TagLib_File* file = taglib_file_new("myfile.mp3"); FILE *fh = fopen("mypicture.jpg", "rb"); if(fh) { fseek(fh, 0L, SEEK_END); long size = ftell(fh); fseek(fh, 0L, SEEK_SET); char *data = (char *)malloc(size); fread(data, size, 1, fh); TAGLIB_COMPLEX_PROPERTY_PICTURE(props, data, size, "Written by TagLib", "image/jpeg", "Front Cover"); taglib_complex_property_set(file, "PICTURE", props); taglib_file_save(file); free(data); fclose(fh); } \endcode