0
0

First let me say YAHOOOOOOOOOOOOOO!

Ever since JMF gave up on mp3’s I’ve been looking for a replacement, it’s nice to finally find one that is just as easy to use and just a functional. Congratulations.

Second, obviously I’m using fmod in java using NativeFmod. Anyone have any examples of how to use
FSOUND_Stream_GetTagField()

Thanks

  • You must to post comments
0
0

Although this example code is for the [url=http://lwjgl.org:3fu2udfu]LWJGL[/url:3fu2udfu] (java) fmod binding you might be able to get the general idea:
[url=http://cvs.sourceforge.net/viewcvs.py/java-game-lib/LWJGL/src/java/org/lwjgl/test/fmod3/TagFieldTest.java?rev=1.1&view=markup:3fu2udfu]TagFieldTest.java[/url:3fu2udfu]

  • You must to post comments
0
0

That looked hopeful, but now I’m getting a nasty org.lwjgl.fmod3.FMODException: missing implementation error.

Here’s my code.

FSoundTagField field = new FSoundTagField(FSound.FSOUND_TAGFIELD_ID3V1, “ARTIST”);
if(FSound.FSOUND_Stream_FindTagField(stream, field)) {
System.out.println(“Found field: ” + field.getName() + “, ” + field.getType() + “, ” + field.getLength());
}

  • You must to post comments
0
0

heh, yeah – the 0.92 release (latest, 0.93 is imminent) is missing that and some other methods – it’s been fixed in cvs – so either wait for 0.93 (probably a day or two before its released) or compile directly from cvs.

  • You must to post comments
0
0

cool,
I can certainly wait a few days.

Thanks

  • You must to post comments
0
0

0.93 released – this should enable the tag field stuff.
https://sourceforge.net/project/showfil … _id=278286

  • You must to post comments
0
0

yes yes yes
A definite step in teh right direction. There is an extra character at the beginning of each field that I can get rid of with a substring. Looks like a potential bug maybe?

Thanks

  • You must to post comments
0
0

uhm – you mean at the end of the tag, right ?
The reason is that it’s the total size of the field. This works fine with binary fields – unfortunately strings contain a \0 (the null terminator). I can’t really do anything about it since I can’t reliably detect whether to trim the last character since I don’t know if its a string, integer or some other datatype.
Ususally you can just trim any string returned from getValueAsString() though

  • You must to post comments
Showing 7 results
Your Answer

Please first to submit.