Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
TheLion
20
Years of Service
User Offline
Joined: 30th Jun 2004
Location:
Posted: 23rd Aug 2004 09:02
Hi,
I've read that fmod is used by Dark basic, if this is true
how do you access fmods internal sound functions? or would it be better to load it as a DLL and call the internal functions for
FMOD.


Cheers Leo
Dreq934
21
Years of Service
User Offline
Joined: 15th Dec 2003
Location: SC, USA
Posted: 23rd Aug 2004 12:08
TheLion
20
Years of Service
User Offline
Joined: 30th Jun 2004
Location:
Posted: 23rd Aug 2004 16:13 Edited at: 23rd Aug 2004 16:23
Wow! Superb

So it's best to load it as a DLL and to boot your using the latest release great, nice one !!!

I'm fairly new to DB pro just got it to be truthful, I normally play with Delphi 7 and Fmod, mainly it's FFT stuff so will need to look at callback routines. You had any success retrieving the
sound data for FFT and Oscilloscopes and stuff?

Thanks for the example code, appreciate it!

Cheers Leo
Dreq934
21
Years of Service
User Offline
Joined: 15th Dec 2003
Location: SC, USA
Posted: 23rd Aug 2004 16:52 Edited at: 23rd Aug 2004 16:54
Translating is not exactly difficult. Just look at the include file for VisualBasic

As for callbacks, I'm sure theres a way to hack it in DarkBasic.

Dark Basic Professional
TheLion
20
Years of Service
User Offline
Joined: 30th Jun 2004
Location:
Posted: 23rd Aug 2004 17:18
Dreg934,

So your using the VB inc file to find the function names. Hmmmm, could do with writing a small prog to pick out all function names into Fmusic and Fsound commands.

The main problem is finding the function address for the callback routine so it can be passed to Fmod anyways,now I know it can be used fairly easily will play about trying to sort it out.

Thanks again

Leo
Dreq934
21
Years of Service
User Offline
Joined: 15th Dec 2003
Location: SC, USA
Posted: 23rd Aug 2004 18:48
Its not hard at all!

VB Include may say something like this:


Which could be translted into DB like this:


Pretty straight foward

Dark Basic Professional
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 23rd Aug 2004 23:35
There is a Bass.dll demo somewhere that has spectrum bars etc, maybe that would give some additional clues. I could'nt tell you where it's hiding, possibly codebase - but if you'd like a copy just drop me an email.


Van-B


Muhahahahaha.

Login to post a reply

Server time is: 2025-06-06 12:14:50
Your offset time is: 2025-06-06 12:14:50