0
0

Hi!

Can I use DirectX or “WinAmp” DSP audio plugings with FMod. If that’s possible how do I do it in VisualBasic?

DirectX plugs:
http://www.db-audioware.com/dbm.htm

WinAmp plugs:
http://www.octiv.com/index.asp?content=winamp
http://classic.winamp.com/plugins/detai … ntId=81361

Thanks!

  • You must to post comments
0
0

Hi KarLKoX

Have you found anything in your “winamp.dll” that makes FMOD load the CPU very much when stoping a stream. If I run the same plugin in WinAmp nothing happens with the CPU load when stoping, as it should.

Thanks!

  • You must to post comments
0
0

I get the same error, can’t find “winamp.dll”. Same were ever I put the dll. Compiled or VB IDE no deifferencs. I usw Windows XP

  • You must to post comments
0
0

Did anyone ever tell you, you simply ROCK! :)

++Cire.

  • You must to post comments
0
0

this plugin is very unstable : it crashes winamp (lol), bsplayer and kjofol but i ll see what can i do (tomorow), for me, this plugin is faulty ๐Ÿ˜†

Note : yes, this dll is hardcoded with fmod, i ll use the fmod dyn version for the next release.

  • You must to post comments
0
0

[quote="Anonymous":3mpp00h0]Thanks a lot..

I’ll wait for the updated DLL. :D[/quote:3mpp00h0]
Oh sorry, that was me (JMF) but on a box that was not logged in. ๐Ÿ˜ณ

  • You must to post comments
0
0

Cire>

[code:qpxti2rf]
/* this is just for the example, buffersize must be calculated according the samplerate (here 44100)

define MAX_PLUGINS 512

define DSP_BUFFERSIZE ( 44100 * 128 ) / 1000

define SINGLE_BUFFER_SIZE BUFFERSIZE << 2

FSOUND_DSPUNIT *DSP, *DSP2; // handle to the DSP callback
INT dsp_Plugin_Samples;
signed short *DspBuffer = NULL;
int DspOffset=0, DspLen=0;

void WINEXPORT Start_Dsp(int i)
{

dsp_Plugin_Samples  = SINGLE_DSP_BUFFER_SIZE &gt;&gt; 1;
if ( dsp_Plugin_Samples &gt; MAX_PLUGINS) dsp_Plugin_Samples = MAX_PLUGINS;

DspLen      = SINGLE_DSP_BUFFER_SIZE;               /* 500ms */
DspBuffer   = (signed short*)calloc(FSOUND_DSP_GetBufferLengthTotal() + 16, 4); 
DspOffset   = 0;


DSP2 = FSOUND_DSP_Create(&amp;dsp_DSP_callback, FSOUND_DSP_DEFAULTPRIORITY_USER+2, (int)DspBuffer);
// DSP initialised ?
if (!FSOUND_DSP_GetActive(DSP2) )
{
FSOUND_DSP_SetActive(DSP2, TRUE);
}

/* here i create a new thread (loop until channel is not playing) /
/

theDspThread = Dsp_New_Thread_Init(i);
if (! theDspThread)
{
MessageBox(mainhwnd,"Dsp_New_Thread_Init() Error !","Error !!", MB_ICONEXCLAMATION | MB_ICONWARNING);
}

*/

}
[/code:qpxti2rf]

Ken>This pb is fixed, the archive was updated :)

  • You must to post comments
0
0

hmmm, could you also Zip it unstead of using Rar?

  • You must to post comments
0
0

uh … thanx :roll:

  • You must to post comments
0
0

KarLKoX I was wondering if you would be willing to send me the source code to the SDK for DSP that winamp distrubutes from its 2.x platforms, they no longer have it for download yet I would like to implment these plugins for my player.

I’am not interested in the visuals because winamp likes to stick visuals in a seperate window, and I like mine to be within the main apps window, except at full screen.

Anyhow I’d be most greatful if u could forward me the C++ source. I don’t need any VB mods, just root stuff since my player is designed in C++. Thanks.

++Cire.

  • You must to post comments
0
0

I figure out how to get the dll to work with the latest fmod release ๐Ÿ˜†
Don’t take attention to the “Bass” related code, this is a wip.

Note : the dll was dynamicly linked with MFC to minimize the dll size (from 120 kb ==> 28 kb)

  • You must to post comments
0
0

Thanks! It work 100% now 8)

  • You must to post comments
0
0

The bug is fixed (the archive was updated).

  • You must to post comments
0
0

I think that’s not a problem of KarLKoX dll or something like that.
It’s normal, because when you stop a stream or a module the signal became flat (all zeros). Using floating point multiplication and division with flat signals generates a lot of interrupts (or something like that, I read this on a document sometime ago) and so CPU usage increases a lot.
To avoid this you should not call the DSP procedure when the player is stopped or paused.

  • You must to post comments
0
0

Never Mind I found the SDK, umm what parms are they looking for I’am assuming that :

short int *samples -> pointer to the dsp buffer?
int numsamples ->lenght of the dsp buffer?
int bps -> erm bits per second?
int nch -> Number of channels?
int srate -> Sample rate at which we inited fmod with?

Can ya shed some light please?

++Cire.

  • You must to post comments
0
0

It can even be much smaller, just give you a hint:

http://home.zonnet.nl/hebels13/bass_wa_src.zip

Hope you like it ๐Ÿ˜€

  • You must to post comments
0
0

Hey bud thanks, it works great now, cept it sounds like crap when listening to mod’s xm’s, it’s ect..

Any suggestions?

++Cire.

  • You must to post comments
0
0

Thanks, works perfect this time ๐Ÿ˜€

PS: Am I allowed to use your dll in my own mp3 player?

  • You must to post comments
0
0

Karl do want to share the source code for the “winamp.dll” ?

  • You must to post comments
0
0

don’t worried, i ll post the dll source code, i don’t have much free time these days, i ll clean up the code and add the link here :)

  • You must to post comments
0
0

This technique is already used, it saves me only 4 kb :(

  • You must to post comments
Showing 1 - 20 of 52 results
Your Answer

Please first to submit.