12 Replies Latest reply on Sep 10, 2010 5:16 PM by gagrinds

    VST Audio for CS5 SDK question

    gagrinds

      I have a couple of old audio plug-ins that ran on CS4.  I just recompiled my old VST library for 64 bit and built my plug-ins.  Everything went okay, but CS5 does not see them.  Is there a new VST library for CS5 or should I be doing something else?

       

      Thanks,

      Gee

        • 1. Re: VST Audio for CS5 SDK question
          Zac Lam Adobe Employee

          Does the Premiere Pro plug-in loader see the plug-ins in the location you've installed them?  You can verify this by checking the Plugin Loading Log.  It'll be here on Vista:

          [user  folder]\AppData\Roaming\Adobe\Premiere Pro\5.0\Plugin Loading.log

           

          If you don't see your VST plug-ins mentioned in that log, we recommend the plug-ins be installed to the path pointed to by the registry key:

          HKEY_LOCAL_MACHINE/Software/VST

           

          Hope this helps,

           

          Zac

          • 2. Re: VST Audio for CS5 SDK question
            gagrinds Level 1

            Zac,

             

            In the examples you gave me years ago, I made following declaration:

             

            AEffect *main (audioMasterCallback audioMaster)

            {

            ...

            }

             

            In CS4 it complained so I made the following change:

             

            int *main (audioMasterCallback audioMaster)

            {

            ...

            }

             

            This worked in CS4 and the compiler stopped complaining.  However, it did not work in CS5.  I tried several other things, but it fails to load.

             

            What should it be?

             

            Thanks,

            Gene

             

            Gene A. Grindstaff

            Executive Manager

            Security, Government & Infrastructure (SG&I) Division 

            Intergraph Corporation 

            PO Box 6695, Huntsville, AL 35813 USA

            P 1.256.730.6983 F 1.256.730.8046 M 1.256.566.5376

            gene.grindstaff@inergraph.com

            www.intergraph.com

            • 3. Re: VST Audio for CS5 SDK question
              Rallymax Level 2

              Don't know the answer but dllmain is to do with windows dll not adobe 

              so I'd look for 64bit dll on msdn.Microsoft.com

              I dont know if you can have a main() anymore on win 64

               

              Quick search found this

               

              //  DllMain()  function  prototype.

               

              BOOL  WINAPI  DllMain  (  HINSTANCE  hinstDLL,

                 DWORD  fdwReason,  LPVOID  lpvReserved  );

              • 4. Re: VST Audio for CS5 SDK question
                gagrinds Level 1

                It also has dllmain for Windows loading, but the main() is the exported call back entry point.  However, the compiler complains that main() should be of type int not a structure pointer.  If you make it type int, it crashes CS4 and will not load on CS5.

                 

                I just need to know how to work around this issue.

                 

                Gene

                • 5. Re: VST Audio for CS5 SDK question
                  Rallymax Level 2

                  Can you change the name from main to something else? In exporteres the 

                  callback is not called main.

                  I suspect that you're fighting the windows definition and adobes 

                  callback definition. If u change the name it'll fix that.

                  • 6. Re: VST Audio for CS5 SDK question
                    gagrinds Level 1

                    Yes, I can change it, but I need to know the standard calling convention name that Adobe and VST expects to be there.  Does anyone know what it should be.

                     

                    Gene

                    • 7. Re: VST Audio for CS5 SDK question
                      Rallymax Level 2

                      My guess is that it's AEFilter*

                      • 8. Re: VST Audio for CS5 SDK question
                        Rallymax Level 2

                        Sorry AEffect*

                        • 9. Re: VST Audio for CS5 SDK question
                          gagrinds Level 1

                          Yes, I know that it must be of type AEffecs*, but I presume it must have a standard name just like Premiere Pro video, transitions, etc. Have a standard name or callback.

                           

                          Do know the name?

                           

                          Gene

                          • 10. Re: VST Audio for CS5 SDK question
                            Rallymax Level 2

                            Hi,

                             

                            Can you post the .cpp file that Zac made for you?

                            It’s kinda hard to help you if I can’t work out what sort of callback you were trying to make.

                             

                            Btw,

                             

                            Based on your original post...

                             

                            >In the examples you gave me years ago, I made following declaration:

                            >AEffect *main (audioMasterCallback audioMaster) { ...

                            >}

                            >In CS4 it complained so I made the following change:

                            >int *main (audioMasterCallback audioMaster) { ...

                            >}

                            >

                             

                             

                            ...I just grep'ed for the "audioMasterCallback" in all CS3|4|5 SDKs for AE and Premiere and it's not there.

                            I'm wondering how you compiled at all when there is no definition for it in the headers?

                             

                             

                            D:\My Downloads\Adobe\SDK>dir /ad

                            Volume in drive D is MEDIA

                            Volume Serial Number is E20D-79C1

                             

                            Directory of D:\My Downloads\Adobe\SDK

                             

                            09/10/2010  07:34 AM   

                            .


                            09/10/2010 07:34 AM

                            ..


                            01/24/2010 04:52 PM

                            Adobe After Effects CS3 SDK


                            09/10/2010 07:34 AM

                            Adobe After Effects CS4 SDK


                            09/10/2010 07:34 AM

                            Adobe After Effects CS5 Win SDK


                            01/24/2010 04:52 PM

                            Adobe Premiere Pro CS3 r1 SDK


                            09/10/2010 07:31 AM

                            Premiere Pro CS4 r1 SDK Win


                            09/10/2010 07:32 AM

                            Premiere Pro CS5 Win SDK


                            0 File(s) 0 bytes


                            8 Dir(s) 125,591,977,984 bytes free



                            D:\My Downloads\Adobe\SDK>

                             

                             

                             

                             

                             

                             

                             

                            grep audioMasterCallback . -rn

                             

                            D:\My Downloads\Adobe\SDK

                            • 11. Re: VST Audio for CS5 SDK question
                              gagrinds Level 1

                              I am traveling this morning, so I cannot upload anything for a while.  Since the interface is defined in the VST documents, you probably will not find any documentation.  I did look in the includes an some of the VST documentation, but I did not see anything that would help.

                               

                              When I get back to the office I will dump the entry points for one of Adobe's audio dlls and see what entry point it has.

                               

                              I just thought one of you might have used the VST SDK and knew the answer.

                               

                              Thanks,

                              Gene

                              • 12. Re: VST Audio for CS5 SDK question
                                gagrinds Level 1

                                The correct entry name is MAIN not main.

                                 

                                Thanks,

                                Gene