Strncat(music_test_path, music_file_name, strlen(music_file_name)) Strncat(music_test_path, internal_music_storage_path, strlen(internal_music_storage_path)) Path_len = strlen(internal_music_storage_path) + strlen(music_file_name) + 1 Internal_music_storage_path = strdup(path) Storage_cb(int storage_id, storage_type_e type, storage_state_e state,Įrror = storage_foreach_device_supported(storage_cb, NULL) Įrror = storage_get_directory(internal_storage_id, STORAGE_DIRECTORY_MUSIC, &path) The following example code uses an internal storage, so you must include the storage.h header file for the code to work.Ĭhar *music_file_name = "test_music.mp3" This tutorial uses an MP3 audio file, which is accessed through its file path. Make sure you have access to the file whose metadata and artwork you want to edit. This tutorial uses a global variable for the handle. Static metadata_editor_h g_metadata_h = NULL To work with the Metadata Editor API, define a handle variable for the metadata editor: To use the functions and data types of the Metadata Editor API, include the header file in your application: To initialize the metadata editor for use: The metadata editor does not support image or video files. You can use the metadata editor only with audio files. Warm-upīecome familiar with the Metadata Editor API basics by learning about:Ĭreate a metadata editor handle, bind the handle with an audio file, edit the metadata and artwork, and apply the edits to the file. This feature is supported in mobile applications only. This tutorial demonstrates how you can edit metadata and artwork in audio files. Metadata Editor: Editing Metadata from an Input Audio File
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |