0
0

Hi there,

I am working on an application written in VB for .NET CF to run on a PDA (Windows CE/Windows Mobile 2003). I am using some APIs from FMOD that require float parameters to be passed. It appears this is not possible as a direct call to the FMOD .dll in .NET CF.

As I understand it, I need to write a wrapper in eMbedded Visual C which would act as the bridge between VB and FMOD’s functions. So, basically VB would call the wrapper (passing the float arguments by reference) method which would in turn call the FMOD function. Is this correct?

The functions are in the fmodce.dll file. I just need to wrap 2 functions:

FSOUND_Sample_SetMinMaxDistance

signed char F_API FSOUND_Sample_SetMinMaxDistance(
FSOUND_SAMPLE *sptr,
F_FLOAT_API min,
F_FLOAT_API max
);

and

FSOUND_3D_Listener_SetAttributes

void F_API FSOUND_3D_Listener_SetAttributes(
const F_FLOAT_API */pos/,
const F_FLOAT_API */vel/,
F_FLOAT_API /fx/,
F_FLOAT_API /fy/,
F_FLOAT_API /fz/,
F_FLOAT_API /tx/,
F_FLOAT_API /ty/,
F_FLOAT_API /tz/
);

Can anyone offer an outline of the steps to create and compile a wrapper for these functions? I haven’t worked with eMbedded Visual C before… so would need details.

Thanks for any pointers!

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.