0
0

Hi to all FMOD-Users,

I downloaded FmodEx v4.30.02 some weeks ago, wondering why there are no more code samples for Delphi-Users. 😮

There is even no more .pas-HeaderFile for Delphi included. :(

So I started to write my own wrapper for Delphi7. Up to now it works perfectly, at least with the basic FMOD-Functions (Init-Play/Start-Release, etc.), but it would be easier (and faster) to have some code support for Delphi as well. 😆

metis

  • You must to post comments
0
0

Unfortunately we are not proficient with the Delphi language. In the past we provided delphi headers that were maintained by third parties however those headers fell into disrepair.

If you have any questions about delphi usage with FMOD I suggest asking questions here on the forum. Perhaps some other users can help out.

  • You must to post comments
0
0

Hi mathew,

thanks for Your replay.
So I’ll go on writing my own Delphi-Wrapper.
If anybody is interested in it, he may have a copy then.

metis

  • You must to post comments
0
0

sure, it would be great if you can provide an updated wrapper

  • You must to post comments
0
0

Hi DOCa Cola,

I write this wrapper "on the fly" for my DJ-Mixer-App, means each time I need a Fmod-function, I add it.
For the moment all needed to play sounds, incl. times, volumes, etc. is done and working with Delphi7.
So it will take some time, and it’s not sure, that I will write all the wrapper for Delphi; therefore I give U an example to show U how it works:

unit FMOD;

{ … }

interface

type
TFMOD_MODE = (
FMOD_DEFAULT = $0, // FMOD_DEFAULT…
FMOD_LOOP_OFF = $1, // For non looping sounds…
FMOD_LOOP_NORMAL = $2, // For forward looping sounds.
{ … } // …
FMOD_LOADSECONDARYRAM = $20000000, // Load sound into the secondary RAM…
FMOD_VIRTUAL_PLAYFROMSTART = $80000000, // For sounds that start virtual…
);

{ … }

function FMOD_System_PlaySound(FMODSystem: Integer; ChannelID: TFMOD_CHANNELINDEX; Sound: Integer; Paused: Boolean; var Channel: Integer): TFMOD_RESULT; {$IFDEF LINUX} cdecl {$ELSE} stdcall {$ENDIF};

{ … }

implementation

const
FMOD_DLL = ‘fmodex.dll’;

function FMOD_System_PlaySound; external FMOD_DLL {$IFDEF MSWINDOWS} name ‘FMOD_System_PlaySound’ {$ENDIF};

{ … }

end.

Hope, this is useful for U

metis

  • You must to post comments
0
0

Hi Metis,
I am interested in fmod wrappers for delphi, can you please send me a copy to email:
rastik.kiss@gmail.com?
Thanks too much.

  • You must to post comments
0
0

Hi I migrated from Fmod to bass. It has an official Delphi support, the system is very easy and you cann to have an actual versions of dll without a search some unofficial wrappers. Stefan

  • You must to post comments
Showing 6 results
Your Answer

Please first to submit.