mstop4 / FMODGMS

🎶 GML bindings to the FMOD Studio low-level API for GM:S and GMS2. Can be used in Windows, macOS, and Linux games.
https://quadolorgames.itch.io/fmodgms
BSD 2-Clause "Simplified" License
62 stars 18 forks source link

Can't read chinese/japanese character from tag #19

Open Tanuki33 opened 5 years ago

Tanuki33 commented 5 years ago

when i try to read tag the japanese/chinese character become ??? (question mark) i am use FMODGMS_Snd_Get_TagStringFromIndex image game maker use utf8 , i think the extension use utf16 right?

before if I was wrong please forgive me :D *and sorry bad english I just used FMOD for about 1 week, this extension is very useful!

mstop4 commented 5 years ago

This is due to alimitation of GameMaker Studio's extension system, where returned strings must be of type char*, which are (at least in Windows) limited to 8 bits per character, which causes problems with ID3v2 tags that use UTF-8 or UTF-16 strings. I have been thinking of a workaround for this, so I hope I'll get this fixed soon.

Tanuki33 commented 5 years ago

i hope so too 👍

Edit: can you extract the album art too? it will be amazing