Skip to content
M.S.T.O.P edited this page Jul 24, 2018 · 4 revisions

I followed the Ubuntu setup instructions and the demo still won't run! (applies to v.0.9.1 or older)

The demo was compiled with the Ubuntu YYC export module, so you probably need to install libcurl3 as well on your machine:

sudo apt-get install libcurl3:i386

Using metadata functions (sound type, tag type, tag data type), going from pre-v.0.7.0 to v.0.7.0

Before v.0.7.0, using one of the metadata functions would return a string describing the audio format for that particular sound or the tag format for one of its tags. For example, the following code:

Create Event

snd_index = FMODGMS_Snd_LoadSound("boop.ogg");

Draw Event

snd_type = FMODGMS_Snd_Get_Type(snd_index);
draw_text(0,0,snd_type);

Would draw this in the game window:

OGG - Ogg Vorbis

This was a bit cumbersome if you wanted to, for example, analyze the metadata using iterated values. In v.0.7.0+, the same code would return an error since FMODGMS_Snd_Get_Type no longer returns a string, but a double (real). If we modify our Draw Event code so that we can draw the new value of snd_type:

var snd_type = FMODGMS_Snd_Get_Type(snd_index);
draw_text(0,0,string(snd_type));

We would get this on screen:

10

This is the value of the macro FMODGMS_SOUND_TYPE_OGGVORBIS, which is the equivalent to the value of FMOD_SOUND_TYPE_OGGVORBIS used by FMOD studio internally.

To get the old string description back, we must pass the value returned by FMODGMS_Snd_Get_Type into a new function, FMODGMS_Snd_TypeToString:

var snd_type = FMODGMS_Snd_Get_Type(snd_index);
var snd_name = FMODGMS_Snd_TypeToString(snd_type); 
draw_text(0,0,snd_name);

This will yield:

OGG - Ogg Vorbis