Announcement

Collapse
No announcement yet.

WA5 plugin under WA2

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • WA5 plugin under WA2

    Hello,

    I have read some information about WA5 plugin development.
    I understood, that WA2 plugin will works under WA5.

    I have downloaded and installed WA5 SDK, I have compiled and successfuly launched TEST plugin for WA5.

    The question is:

    There are lot of WA2 players are in use still. I wish to create my plugin, to be compatible with both WA2 and WA5 players.

    What is the best way for it?

    Where I can get SDK for WA2?
    Can I create the plugin, wich will recognize WA version and work well under both of them (I mean that it will use advanced features under WA5 and will use only small API under WA2, if it is possible)?

    Please advise.
    Last edited by Egor; 19 July 2004, 01:51.

  • #2
    the wa2 sdk is the wa5 sdk, just with extra api messages, etc added. wa_ipc.h shoul show which are new to 5.x.

    as for testing things, IPC_GETVERSION is a good way to go

    -daz
    WACUP Project <‖> "Winamp Ramblings" - Indie Winamp Dev Blog

    Comment


    • #3
      But, when I have installed WA2, and put my WA5 plugin to WA2's plugins directory - WA2 does not see it! What is wrong then?

      Will WA2 answer to IPC_GETVERSION message? how it should works, pelase clarify.

      Comment


      • #4
        right to clarify this (i hope). any plugins you make export the same function which winamp either as a 2.x or a 5.x version will look for and if found then 'load' the plugin.

        the whole core for the two is the same, just 5.x has more messages added to it (since 5.x is just 2.x with bug fixes and a few extra plugins).

        code:
        int version = SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_GETVERSION);
        calling that in any plugin will return the current value (unless it's 5.02 then it'll report 5.01). so you then just check ie if(version >= 0x5000){ .. } will only do stuff if it's a 5.x install.

        -daz
        WACUP Project <‖> "Winamp Ramblings" - Indie Winamp Dev Blog

        Comment


        • #5
          Thanks!
          I will try it tonight!
          [IMG]http://forums.goha****images/smilies/wow.gif[/IMG]

          Comment


          • #6
            Yes, it works.

            plugin made with SDK example is working under both wa2 and wa5.

            Thanks.

            Comment


            • #7
              Originally posted by Egor
              Yes, it works.

              plugin made with SDK example is working under both wa2 and wa5.
              said it would

              (better keep a copy of this thread to point to for those who don't believe it is true )

              -daz
              WACUP Project <‖> "Winamp Ramblings" - Indie Winamp Dev Blog

              Comment

              Working...
              X