Archive: Accessing Global Variables in APE s


13th February 2007 17:15 UTC

Accessing Global Variables in APE s
I remember hearing somewhere (i think) that APE's should be able to modify Register and gmegabuff contents as of Winamp 5? is this true or just wishfull dillusion on my part? If so could somebody give me an example of how to do it?


13th February 2007 18:51 UTC

You may have been heard of Jheriko's "Global" Variable Manager
Get it here
But i am afraid to tell you that the registers and buffers it accesses are avs-internal.


18th February 2007 21:15 UTC

Actually, as I recall, the gmegabuf call is public, so anybody can modify the buffer through that call. That's a good idea anyway because gmegabuf allocates space as needed, so to try to modify its values directly you'd have to do that too.

I don't remember where the registers are stored, but they almost have to be public too.

Check the nseel source.