G4m4 / openmini

An open source homage to the Minimoog
http://g4m4.github.io/openmini/
GNU General Public License v3.0
13 stars 3 forks source link

Clean the explicit downcast in the Vca processing method #61

Open G4m4 opened 10 years ago

G4m4 commented 10 years ago

In order to use the generic math function FillWithGenerator() properly, we need to explicitly downcast the internal pointer to the generator into the actual type. This is really ugly (and introduce an additional #include dependency that we do not want).

When optimizing Vca, this generator type will be known at compile time (templated). It should then be used in order to call the function cleanly.