0
0

hi guys,

i have another problem with fmod ex which occurs when trying to get an entry from a playlist via getTag.
my short code:
[code:23enwipd]FMOD_RESULT res;
FMOD_TAG tag;
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
"C:\musik\myMusicFile[1]ABCDE.mp3"
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\myMusicFile[1]CDE.mp3".

my sample pls playlist looks like this:
[code:23enwipd][playlist]
Version=2
NumberOfEntries=371
File1=Bo Flower – Heile Welt\01_bo_flower_-]intro.mp3
Title1=01 bo flower – intro
Length1=98
File2=Bo Flower – Heile Welt\02_bo_flower
die_show_hat_begonnen.mp3
Title2=Bo Flower / die show hat begonnen
Length2=213
File3=Bo Flower – Heile Welt\03_bo_flower
auf_and_ab.mp3
Title3=Bo Flower / auf & ab
Length3=197
File4=Bo Flower – Heile Welt\04_bo_flower
-_leben_in_angst_ft._deniz.mp3
Title4=Bo Flower / leben in angst ft. deniz
Length4=227
................ // many more
File160=E:\audio\Jay-Z\BlackAlbum\(Jay-Z) The Black Album [01] Interlude.mp3
Title160=Jay-Z / Interlude
Length160=82
File161=E:\audio\Jay-Z\BlackAlbum\(Jay-Z) The Black Album [02] December 4th.mp3
Title161=Jay-Z / December 4th
Length161=274
............ // 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!

sincerely,
julian

  • You must to post comments
0
0

Hi Julian,

That was a bug, thanks for pointing it out. I have fixed it for the next release.

-Pete

  • You must to post comments
0
0

alright thanks for the fix, pete! :)

is there already an approximate date for your next release btw.?

sincerely,
julian

  • You must to post comments
0
0

That fix made it just in time for fridays build so it should be in the latest version of every branch.

-Pete

  • You must to post comments
0
0

big thanks pete, it works like a charm now with v4.24.11!

sincerely,
julian

  • You must to post comments
0
0

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:
[code:23oxnkx2][playlist]

File1=http://sc2.netstreamer.net:8042
Title1=DEFJAY Radio – 100% R&B – Astra & Kabel
Length1=-1

NumberOfEntries=1
Version=2[/code:23oxnkx2]
tag.data contains "Title1=t", which is obviously wrong.

but despite that, for example http://www.hot108.com/hot108.pls, looking like this
[code:23oxnkx2][playlist]
numberofentries=19

File3=http://scfire-dtc-aa01.stream.aol.com:80/stream/1071
Title3=HOT 108 JAMZ #1 FOR HIP HOP — ALL HIP HOP AND R & B – HD)Radio
Length1=-1

File4=http://scfire-ntc-aa01.stream.aol.com:80/stream/1071
Title4=HOT 108 JAMZ #1 FOR HIP HOP — ALL HIP HOP AND R & B – HD)Radio
Length1=-1

// up to File19, each time a different url of course but all the same other infos

Version=2[/code:23oxnkx2]
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!

sincerely,
julian

  • You must to post comments
0
0

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.

-Pete

  • You must to post comments
0
0

thank you pete, of course i’ll tell you when new problems occur. ๐Ÿ˜‰

sincerely,
julian

  • You must to post comments
0
0

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! ๐Ÿ˜‰

sincerely,
julian

  • You must to post comments
Showing 8 results
Your Answer

Please first to submit.