PDA

View Full Version : WinAmp doesn't recognize plugin


blaimue
2nd September 2005, 19:52
Hi,

I'm new to this game. I've been looking at all the previous posts and help files and everything I can find about WinAmp development, but I still have a question.

I just compiled one of the example plugins that comes with the SDK. I put the resulting .dll file in my plugins folder, but the plugin doesn't show up in the list when I go to Options>Prefs>Plugins. I know that WinAmp is doing something with the file because I tried to delete it with WinAmp open and I got an 'Access Denied' error.

Thanks,
Chris

DrO
2nd September 2005, 22:10
which plugin did you try to build? is it correctly named for that type of plugin like gen_??.dll for a general purpose plugin. bit hard to say without knowing the plugin you tried to build

-daz

blaimue
3rd September 2005, 02:18
It was an input plugin, the one that generates a tone. I named it in_tone.dll. I did have to comment a couple lines to make it work, though, so maybe those were important?

Here are the lines I had to comment:

thread_handle = (HANDLE) CreateThread(NULL,0,(LPTHREAD_START_ROUTINE) PlayThread,(void *) &killDecodeThread,0,&tmp);

__asm ({fld d fistp i}

mod.outMod->Write(sample_buffer,l);

These are lines 85, 214-216 and 227 in in_tone.c. I guess maybe "Why do I need to comment these lines?" might be a better question to be asking at the moment.

Thanks,
Chris