i have another problem with fmod ex which occurs when trying to get an entry from a playlist via getTag.
my short code:
res = m_sound->getTag( "FILE", m_currentIndex, &tag );
// check res to be FMOD_OK, handle errors, ...[/code:23enwipd]
in some special cases where the file name (-> the playlist entry) contains a "closing square bracket" (don’t know exactly how to say it in english), for example
the 2 characters following after the "closing quare bracket" (doesn’t matter if there’s an opening one) are just cut out.
this means, reinterpret_cast< char* >( tag.data ) is "C:\musik\myMusicFileCDE.mp3".
my sample pls playlist looks like this:
File1=Bo Flower – Heile Welt\01_bo_flower_-]intro.mp3
Title1=01 bo flower – intro
File2=Bo Flower – Heile Welt\02_bo_flower–die_show_hat_begonnen.mp3
Title2=Bo Flower / die show hat begonnen
File3=Bo Flower – Heile Welt\03_bo_flower–auf_and_ab.mp3
Title3=Bo Flower / auf & ab
File4=Bo Flower – Heile Welt\04_bo_flower-_leben_in_angst_ft._deniz.mp3
Title4=Bo Flower / leben in angst ft. deniz
................ // many more
File160=E:\audio\Jay-Z\BlackAlbum\(Jay-Z) The Black Album  Interlude.mp3
Title160=Jay-Z / Interlude
File161=E:\audio\Jay-Z\BlackAlbum\(Jay-Z) The Black Album  December 4th.mp3
Title161=Jay-Z / December 4th
............ // some more[/code:23enwipd]
all the entries without a ‘]’ are returned correctly.
from the part i pasted, only File160 and File161 are returned with the 2 characters after the ‘]’ missing.
i guess that is my mistake beacuse i don’t think fmod ex would contain such a bug, but i really couldn’t find out why this happens.
maybe it’s been an issue and has been fixed in the latest fmod ex version? (i’m currently using v. 4.24.7).
thanks in advance to anybody willing to help me!
- -=Freaky=- asked 9 years ago
yes i just testet it with v.4.24.12 and everything seems to work fine now.
honestly i have to say, the fmod developer team is really a great example for working with "the community" and giving support, even though many people (like me) just use their library in hobby projects and don’t pay for it.
thanks again, and keep up the good work! 😉
hey, i just noticed that there actually is another problem in my application now, again some tags are read wrong from a certain playlist.
when i try getting the FILE-tag from http://www.defjay.de/listen.pls which looks like this:
Title1=DEFJAY Radio – 100% R&B – Astra & Kabel
tag.data contains "Title1=t", which is obviously wrong.
but despite that, for example http://www.hot108.com/hot108.pls, looking like this
Title3=HOT 108 JAMZ #1 FOR HIP HOP — ALL HIP HOP AND R & B – HD)Radio
Title4=HOT 108 JAMZ #1 FOR HIP HOP — ALL HIP HOP AND R & B – HD)Radio
// up to File19, each time a different url of course but all the same other infos
is read 100% correct, no problems at all.
so from this i guess the position of the "NumberOfEntries" line at the end of the first playlist somehow irritates fmod ex/getTag().
is this another bug, or did i do something wrong this time?
thanks in advance!
It looks like a small oversight on my part when I was fixing the other bug I introduced a new one. The complete fix will be in the next version which should be out by the end of this week. Let me know if you come across any other problems.
Please login first to submit.