0
0

I was wondering if there is a more C oriented help file for FMOD Ex. The current documentation is very well done, but it is very C++ oriented. For example:

FMOD_RESULT System::init(
int maxchannels,
FMOD_INITFLAGS flags,
void * extradriverdata
);

which requires code like:

FMOD_System_Init(system, 32, FMOD_INIT_NORMAL, NULL);

Which requires 4 items be passed instead of 3 which you might assume because of the definition. (I’m not sure why you have to pass System or why the compiler doesn’t complain that 4 items have been passed instead of 3, but it works.)

So…Is there older documentation floating around out there that is available? I’ve seen some C help stuff that make reference to FMUSIC definitions, but I haven’t seen anything like that in FMOD Ex so I assume that that is the 3.xx versions.

Perhaps there is a more "C"ish help file that I can get? I could try switching to C++, but my brain doesn’t work well with objects…It’s something I’m working on. 😳

  • You must to post comments
0
0

Well, I don’t know anything about C or C++, but I think I know this :

[quote:lhog1d1a]I’m not sure why you have to pass System or why the compiler doesn’t complain that 4 items have been passed instead of 3, but it works.[/quote:lhog1d1a]

Well, since you can’t call system.init, you have to pass the system to the function.

  • You must to post comments
0
0

it’s not that hard to convert so the docs are adequate…

c++ vs c
Object vs FMOD_OBJECT

Object::Function(arguments) vs FMOD_Object_Function(object,arguments);

Object o = new Object(arguments) ==

FMOD_OBJECT *o;
FMOD_Object_Create(&o, arguments);

eg:
FMOD_SYSTEM *mainsystem;
FMOD_System_Create(&mainsystem);

FMOD_System_GetChannelsPlaying(mainsystem,…);

  • You must to post comments
0
0

Got it. Thanks.

  • You must to post comments
0
0

That’s what I was going to say, but looking at the docs it wouldnt be hard for us to update our script to say

[code:3c5obxce]
C++ Syntax

FMOD_RESULT EventGroup::getEventByIndex(
int index,
FMOD_EVENT_MODE mode,
Event ** event
);
[/code:3c5obxce]

[code:3c5obxce]
C Syntax

FMOD_RESULT FMOD_EventGroup_GetEventByIndex(
FMOD_EVENTGROUP *eventgroup,
int index,
FMOD_EVENT_MODE mode,
FMOD_EVENT ** event
);

[/code:3c5obxce]

I’m not sure if we’ll have time to detour onto something like this but we’ll see if we can do it.

  • You must to post comments
0
0

ok just did a bit of perl tweaking, the docs now look like this :)

[img:1tkebwsy]http://www.fmod.org/files/doc.png[/img:1tkebwsy]

  • You must to post comments
0
0

:-) Coolness. You updated all the docs with some perl tweaking??

  • You must to post comments
0
0

yes, the docs are generated anew each time the build goes out, using a perl script which parses the C files and spits out html.

  • You must to post comments
Showing 7 results
Your Answer

Please first to submit.