PDA

View Full Version : DSP Plugins


thinktink
12th March 2010, 16:35
I'm toying with the idea of making a DSP. I've already got a "working" dll. I looked at the example DSP source from the SDK and I've got a problem with callback calling sequence and the "sf" entry in the header def.

Question 1:
winampDSPHeader.sfWhat is "sf"? When does it get called? I copy and pasted the "sf" function from the example DSP in the SDK but I have no idea what it's supposed to do.


Question 2:

Is it possible that a module's "ModifySamples" callback can be called during or even after a callback to the module's "Quit" function?

Thanks in advance

FabD
25th October 2010, 08:59
Hello,

Nobody to answer this one ? I'm also stuck on this "sf" function and her use... I cannot figure out what is doing the one in the example ...

Thanks in advance,
FabD

DrO
25th October 2010, 09:25
1) the sf() function is used to determine if the dsp plug-in is a 'trusted' plug-in (and if you're not trusted then you're not going to know what the functon needs to do) so i really wouldn't worry about it (also i don't think it is used anymore anyway as it could otherwise allow drm'd output to be processed and as that has been circumvented once we don't want that to happen again).

2) the ModifySamples(..) function shouldn't be called when the plug-in is being unloaded or afterwards.

-daz

FabD
26th October 2010, 12:55
Hi Dro, Thanks for the answer....

thinktink
26th October 2010, 13:29
Wow, it took approximately 227 days and a bump to answer this question! lmfao! :blah:

Thanks, I was still wondering about that.

DrO
26th October 2010, 14:31
well i'd missed it though i was between homes and decorating one of them so not too bad really, hehe

-daz

thinktink
18th November 2010, 15:35
New Question:

What is the difference between "winampDSPGetHeader" and "winampDSPGetHeader2"?

Does the current version of Winamp support DSPs that only export the "winampDSPGetHeader" function?

DrO
18th November 2010, 16:03
only 'winampDSPGetHeader2' is supported (don't think i've ever seen anything with 'winampDSPGetHeader' in it).

-daz

thinktink
18th November 2010, 17:44
Thanks, one less thing to have to worry about. :)