Quote:
Originally Posted by gstuff
Look into function pointers in C++.
|
Or just do the choice of processing function inside the audio processing function itself. I'd guess the performance overhead is about the same between using a function pointer or doing a branch. (At least if the compiler is able to inline the called functions...)