Main > Audio/Jukebox/MP3 Forum

Plugins: Document API for JukePlugSys

<< < (65/80) > >>

loadman:

--- Quote from: Space Fractal on January 21, 2008, 11:47:53 am ---2 software is released with this system. We still missing Freebox and maybe DWJukebox...


--- End quote ---

C'mon guys  ;D

Space Fractal:
Barcrest is linked to the JukePlugSys.com in his homepage, if you check the frontpage out. So I assume version 4 would support it.

So I Guess this would not been supported it in version 3, since he only want to bug fixes issues and doesn't add new feature anymore.

Instead He want to get version 4 finished, which is now in beta state for registered costumers. So I hope he got it added this system to version 4.

I do understand that.

Chris (Author of DWJukebox), any change you add this system to the Windows version? Should I send you the little "wrapper" i used in MultiJuke?


David_AVD:
Hi there. Just joined this forum after lurking on and off for a while.

I've written a jukebox application and am interested in supporting the JPS.
My app is written with Delphi 7. I don't know what the rest of you use.

I'm new to dll's but have had a quick play and am learning fast!
Is anyone here willing to give me some pointers on the host code?

edit:
I've just worked out how to talk to a juke plugin in Delphi.
My main question is do I have to support more than one plugin at once?
If so, do you keep the references to them in an array?

loadman:

--- Quote from: David_AVD on March 05, 2008, 07:21:47 pm ---Hi there. Just joined this forum after lurking on and off for a while.

--- End quote ---
Welcome


--- Quote ---I've written a jukebox application and am interested in supporting the JPS.
My app is written with Delphi 7. I don't know what the rest of you use.
--- End quote ---
I write my Plug-in in Delphi but I think Unclet's Juke is in VB6



--- Quote ---My main question is do I have to support more than one plugin at once?
--- End quote ---
Yes Please


--- Quote ---If so, do you keep the references to them in an array?
--- End quote ---
:dunno  Pass


Ahhh pass

unclet:
If you are going to write a plugin supporting the JPS then you are going to need to support the functions listed at the beginning of this post (page 1).

The main ones are:

Juke_GetPluginInfo
Juke_Initialize
Juke_Shutdown
Juke_Configure
Juke_Command

When my jukebox software (written in VB6) starts, it looks into my "plugin" directory to see if any plug files exist in there.  If there are files existing then I loop through each plugin file and determine whether the above routines exist or not.   IF they do not then I do not consider it a valid plugin file.   If the routines do exist, then I call the "Juke_Initialize" routine in the plugin so it can perform any init stuff it needs to and I also call the "Juke_GetPluginInfo" routine to get the plugin name, author, etc... information (which I display inside my software).

I store all of the "valid" plugins in an array.  Whenever I need to send a command to a plugin then I simply loop through my "valid" plugin array and send the command to each plugin by calling the "Juke_Command" routine in the plugin.

Hope this helps some ...... "headkaze" wrote most of the VB6 class module logic which I am using since I had no experience with plugins before implementing all of this JPS stuff.   He is the main guy who might be able to explain the lower level detail stuff if you have more specific questions.   Basically, "headkaze" figured out how a VB6 application can send stuff to a plugin DLL file and how the plugin could return stuff back to the jukebox application when desired.

I just kind of followed what headkaze wrote and that helped a lot.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version