/* * Copyright 2014 Pascal Gauthier. * Copyright 2012 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef ENGINEMKI_H_INCLUDED #define ENGINEMKI_H_INCLUDED #include "synth.h" #include "aligned_buf.h" #include "fm_op_kernel.h" #include "controllers.h" #include "fm_core.h" class EngineMkI : public FmCore { //refacter this when it is working const static FmAlgorithm algo2[32]; public: virtual void render(int32_t *output, FmOpParams *params, int algorithm, int32_t *fb_buf, int feedback_shift, const Controllers *controllers); void compute(int32_t *output, const int32_t *input, int32_t phase0, int32_t freq, int32_t gain1, int32_t gain2, bool add, const Controllers *controllers); void compute_pure(int32_t *output, int32_t phase0, int32_t freq, int32_t gain1, int32_t gain2, bool add, const Controllers *controllers); void compute_fb(int32_t *output, int32_t phase0, int32_t freq, int32_t gain1, int32_t gain2, int32_t *fb_buf, int fb_gain, bool add, const Controllers *controllers); void compute_fb2(int32_t *output, FmOpParams *params, int32_t gain01, int32_t gain02, int32_t *fb_buf, int fb_shift, const Controllers *controllers); void compute_fb3(int32_t *output, FmOpParams *params, int32_t gain01, int32_t gain02, int32_t *fb_buf, int fb_shift, const Controllers *controllers); }; #endif // ENGINEMKI_H_INCLUDED