Can I use DirectX or “WinAmp” DSP audio plugings with FMod. If that’s possible how do I do it in VisualBasic?
- Ken asked 14 years ago
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?
Yes, that’s it
The vb sample was quickly done for you, so expect some bugs
Note : enhancer works like a charm
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.
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
res = (int)WinDSP->ModifySamples(WinDSP, (short *)newbuffer, length, (KBPS / 1000), GetNumChannelsPlaying(), 44100); return newbuffer;
Any Ideas, thanks in advance.
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?
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 …).
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)
Please login first to submit.