View Single Post
Old 2nd November 2005, 14:59   #26
redi jedi
Will code for food
Join Date: Mar 2005
Location: orlando
Posts: 521
i tryed adding an extern m_sound, that didnt work since eval.h cant see the definition of m_sound, i tryed including plugin.h, that gave me a LOT of errors. so what i had to do was add an extern double spec[512] and a public function setspec(double sound[512]) then i called the function from docustomsoundanalisys() and passed it fspecleft[512]. and by the way type casting doesnt work for arrays, you have to do a for loop and type cast each element one at a time(fspecleft is float, sound function works on doubles)

i even tryed making m_sound(in plugin.h) public, but that didnt seem to matter at all, using that set function above was the only way i could think of that it almost had to work...

redi jedi is offline   Reply With Quote