kode54 / Game_Music_Emu

Game Music Emu - Multi-purpose console music emulator and player library
80 stars 16 forks source link

List all supported extensions #7

Open pinobatch opened 6 years ago

pinobatch commented 6 years ago

I want to list all types that my music player's Game_Music_Emu plug-in can play. I can iterate through types with gme_type_list(), but all I can retrieve about each type through the C API are the name of the console it's associated with (gme_type_system()) and and whether the type supports multiple movements (gme_type_multitrack()). I'd like to be able to look up the most common extension associated with a track. I can go from extension to type (gme_identify_extension()), but not the other way around.

kode54 commented 6 years ago

I have added gme_type_extension(gme_type_t), which returns const char*.