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

http://starnetasso.free.fr/Upload/VisWinampTest.rar

The vb sample was quickly done for you, so expect some bugs :)

Note : enhancer works like a charm :)

  • You must to post comments
0
0

uh ? what do u mean ?? the vb example was not modified/updated, only the dll (??)

  • You must to post comments
0
0

Hi!

Running DSP plugs works realy good. BUT, if I play a stream the stop it the CPU load goes skyhigh. Put in “FSOUND_GetCPUUsage” in a timer and check it out.

I hope KarLKoX have a soultion for holding the CPU load down when a sound strem is stopped.

Thanks!

  • You must to post comments
0
0

The links don’t work anymore.

  • You must to post comments
0
0

Gesh I’am not quite shure what i’am doing wrong but can’t seem to get it to work. I can call the config, init, quit functions with no problems, can enumerate the moduels and stuff but when it comes time to doing the mixing i’am lost.

heres my code for the DSP call back function

[code:1waeurzo]

void *DSPCALLBACK(
void *originalbuffer,
void *newbuffer,
int length,
int param
) {
int res;

res = (int)WinDSP->ModifySamples(WinDSP, (short *)newbuffer, length, (KBPS / 1000), GetNumChannelsPlaying(), 44100);

return newbuffer;

}
[/code:1waeurzo]

Any Ideas, thanks in advance.

++Cire.

  • You must to post comments
0
0

I have downloaded your code but it doesn’t work, I get the following error:
‘Runtime error 53: File not found: winamp.dll’.
I have tried to register the dll, but this also doesn’t work.

  • You must to post comments
0
0

Opps sorry, I mean I used the source code that you posted in C++ to get my C++ player to work with Winamp DSP’s and it works great. Except module files (Xm,it,mod,s3m,ect…) sound very crappy.

Was wondering if u had a soluation to this?

++Cire

  • You must to post comments
0
0

i ve tested under xp pro with a sb audigy, w2k pro (emulated via Vmware) and nt 4 with an onboard compaq soundcard, all with the latest drivers and all the plugins within the rar archive : no anormal cpu loads was noticed, it is beetwen 4/5 % as Taskinfo/SpyGuru and FSOUND_GetCpuUsage did report. Try to upgrade to the latest soundcard drivers or check your system with TaskInfo or something else for malicous apps (like spywares, ads services …).

  • You must to post comments
0
0

My host has deleted almost all files, i ll fix the dll to get it working with fmod 3.70 and will upload it.

  • You must to post comments
0
0

I’ve come to guess that what winamp wants for a sample pointer is not the same thing that is supplied via the callbacks I’ve got no clue what has to be done, some source code in C++ would be really nice KarLKoX since u seem to be about the only person who I have seen here get it to work. With the amount of requests for such a thing brett should really sticky or put such code in a FAQ or for download, HINT HINT :)

Like I said I got everything else working, just can’t seem to figure out how to either build the buffers winamp wants. Please help before I pull out all my hair. (and i might mention that i not have much left) :)

++Cire

  • You must to post comments
0
0

The vb source code is provided, trie to start within the IDE to check for errors :)
The DLL is a true 32 bits DLL (in C Win32 api), not a COM or a Active DLL (no need to register it).

  • You must to post comments
0
0

i ve just said that this pb was fixed and the dll was updated with the new dll (i have succesfully tested 5 xm, 2 mod with no glitches). Sorry, my english is very bad .. i know 😳

  • You must to post comments
0
0

Hi!

The raised CPU load only comes if a stream is stoped when DSP is running, when you start the stream again CPU load goes down. Same happens if you pause a stream (no audio to DSP plugin).

The Enhanser goes up from 5 to 35% load. But if you try this great 5-band processor plugin it will raise from 25% to 100%. http://classic.winamp.com/plugins/detai … tId=120741

I have tried this on tree computers (P4), Win XP and Win2k, same result on all.

  • You must to post comments
0
0

I have read many good things regarding the KarLKoX dll but as it does not work with FMod v3.7 I am waiting for the new version.

Do you have an idea of the date it will be available ?

Thanks :)

  • You must to post comments
0
0

[code:3qs6v7df]
/*———————————————————————————-

This callback is used to fill the buffer of pcmData.

———————————————————————————-/
void
dsp_DSP_callback(void *originalbuffer, void *newbuffer, int length, int param)
{
signed short *src = (signed short *)newbuffer; // source pointer from the data
signed short *dspbuff = (signed short *)param;
signed short *srcleft, *srcright;
int numsamples, count;

srcleft   = ((signed short *)newbuffer);
srcright  = ((signed short *)newbuffer)+1;

length <<= 1; // *2 for stereo (number of 16 bit samples) 



for (count=0; count<length; count+=2)
{
    signed int l, r;


    l = (signed int)srcleft[count];
    r = (signed int)srcright[count];

    if      (l < -32768) l = -32768;
    else if (l >  32767) l =  32767;
    if      (r < -32768) r = -32768;
    else if (r >  32767) r =  32767;

    dspbuff[count] = (signed short)(l << 1);
    dspbuff[count+1] = (signed short)(r << 1);

}

/* here i assume fmod is playing at 16 bits/stereo, don’t use GetNumChannelsPlaying(), if FMOD is init to mono, nch = 1 else nch = 2 /
numsamples = gs_vWinAmpPropsDSP[dspid].pModule->getModule(dspmodule)->ModifySamples(gs_vWinAmpPropsDSP[dspid].pModule->getModule(dspmodule), (short
)dspbuff, length >> 1, 16, 2, 44100);

// the buffer is not altered, so keep it clean and return it
return (void*)param;

}
[/code:3qs6v7df]

  • You must to post comments
0
0

It also doesn’t run in the VB IDE, it gives the same error and after I close the error message VB crashes.
I also get the error that the file Test.mp3 cannot be found, even whith the file Test.mp3 in the same folder.

PS: I use Windows 2000

  • You must to post comments
0
0

Umm, but I don’t use your dll, my player is written in C++ I use the code sample that you pasted into my own player which is also C++.

++Cire.

  • You must to post comments
0
0

ok, it grow up to 65 % for me, adding Stop_DSP func when stoping a song fix this pb :)

  • You must to post comments
0
0

[quote="JMF":223e6j0g]I have read many good things regarding the KarLKoX dll but as it does not work with FMod v3.7 I am waiting for the new version.

Do you have an idea of the date it will be available ?

Thanks :)[/quote:223e6j0g]

I ve just finished the PureBasic “port” of Fmod (and other things), i tried yesterday to update the dll without success. I didn’t take attention that only fmod 3.62 worked with it, all others version didn’t …. after some hours of debugging, i didn’t found why it doesn’t work. I think it is the way how streams are handled by Fmod, some changes made break the compatibility. I ll mail Brett to know wich changes were made after the 3.62 release. Then i could update the dll 😉

  • You must to post comments
0
0

Ahh thanks man, What did u set param to be initialized as? and how did u cast it into the setcallback function?

++Cire.

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

Please first to submit.