larsbs / id3v2lib

id3v2lib is a library written in C to read and edit id3 tags from mp3 files.
BSD 2-Clause "Simplified" License
128 stars 44 forks source link

Genre retireval #32

Closed kdeng00 closed 5 years ago

kdeng00 commented 5 years ago

Feature for retrieving the genre name if the genre from the ID3v2_frame_text_content data member is in the ID3 format like this (7) which would be Hip-Hop. The supported genres can be found here. The function to parse the genre number is

void genre_num_string(char* genre_data, char* dest);

The genre_data parameter would be the ID3v2_frame_text_context->data variable and the dest parameter would be where the appropriate genre would be assigned to.