Hey Guys!
I have finally released the new version of BASS_SFX. It now supports Winamp 5 plugins and panel embeding. You can run multiple winamp plugins simultaneously if you like as well. I believe I have fixed the resizing bugs. I have updated the documentation and all header files.
I have not had time to create proper examples showing the usage of the new Winamp 5 embed feature, resizing feature, or the usage of PluginRender for Windows Presentation Foundation projects. So I will show you some small samples to get you started below.
So here is a small sample of how you would use a Winamp 5 plugin normally.
//creating the plugin like this with the following parameters
//will have milkdrop open in a seperate window
if(!hSFX5)
hSFX5 = BASS_SFX_PluginCreate("plugins\\vis_milk2.dll",0,0,0,0);
Here is a sample of how you would embed a Winamp 5 plugin into a container or panel.
//creating the plugin like this with the following parameters
//will have milkdrop emebed into the container specified in the second
//parameter
if(!hSFX5)
hSFX5 = BASS_SFX_PluginCreate("plugins\\vis_milk2.dll", hContainerWnd, 0,0,0);
Also the BASS_SFX_PluginResize function resizes the plugin and its container. I have also added a new function called BASS_SFX_PluginResizeMove which will allow you to resize and move the plugin and its container. Usage is as shown below
//this call will resize the embeded plugin and its container to 400x400
//leaving the plugin and its container in the same position
BASS_SFX_PluginResize(hSFX5, 400,400);
//this call would resize the embeded plugin and its container to 400x400
//but also move it to the position (200,200)
BASS_SFX_PluginResizeMove(hSFX5, 200,200, 400,400);
I am sorry that I have not had the time to create proper examples on how to use all these features. I will try my best to do it in the coming days. At least you can now use winamp 5 plugins and embeded them so that is good.
One more thing. The latest version of Milkdrop 2 is included in the Bin folder in BASS_SFX.zip because in order for BASS_SFX to read that particular plugin it needed to be patched to include the manifest. Winamp loads MSVCR90.DLL and has the manifest too so the plugin dlls just see MSVCR90.DLL in the list of loaded dlls and use it. So if you want to use the absolute latest version of milkdrop keep in mind you MUST use the version that I have provided otherwise it won't load.
I have tested the library, but obviously it takes a lot of effort to test this stuff on all different compilers and all different operating systems. So I haven't really tested this that hard. So please if you find any bugs or have any problems post them here and I will do my best to fix any problems.
Cheers,
Greg