diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-16 11:29:59 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-16 11:29:59 +0200 |
commit | b0b7c2b0e1762a7c0058e7f507a3b7cc9a03daf6 (patch) | |
tree | 246864539eba1669fc19a2007038dfb692a04788 /ftnoir_filter_accela | |
parent | dfbe00cb1d9ce4cb52448cf4c1d577fe7b1eaad7 (diff) |
all: use macros for symbol exposure
Diffstat (limited to 'ftnoir_filter_accela')
-rw-r--r-- | ftnoir_filter_accela/ftnoir_filter_accela.cpp | 13 | ||||
-rw-r--r-- | ftnoir_filter_accela/ftnoir_filter_accela_dialog.cpp | 4 |
2 files changed, 3 insertions, 14 deletions
diff --git a/ftnoir_filter_accela/ftnoir_filter_accela.cpp b/ftnoir_filter_accela/ftnoir_filter_accela.cpp index 5d89bc96..c4b329e1 100644 --- a/ftnoir_filter_accela/ftnoir_filter_accela.cpp +++ b/ftnoir_filter_accela/ftnoir_filter_accela.cpp @@ -30,8 +30,8 @@ static constexpr double trans_gains[][2] = { { 2, 150 }, { 1.66, 60 }, { 1.33, 20 }, - { 1, 4 }, - { .66, 1.5 }, + { 1, 2 }, + { .66, .6 }, { .33, .2 }, { 0, 0 }, { -1, 0 } @@ -104,12 +104,5 @@ void FTNoIR_Filter::filter(const double* input, double *output) } } -extern "C" OPENTRACK_EXPORT IFilter* GetConstructor() -{ - return new FTNoIR_Filter; -} +OPENTRACK_DECLARE_FILTER(FTNoIR_Filter, FilterControls, FTNoIR_FilterDll) -extern "C" OPENTRACK_EXPORT Metadata* GetMetadata() -{ - return new FTNoIR_FilterDll; -} diff --git a/ftnoir_filter_accela/ftnoir_filter_accela_dialog.cpp b/ftnoir_filter_accela/ftnoir_filter_accela_dialog.cpp index dbac8362..2c25ac33 100644 --- a/ftnoir_filter_accela/ftnoir_filter_accela_dialog.cpp +++ b/ftnoir_filter_accela/ftnoir_filter_accela_dialog.cpp @@ -85,7 +85,3 @@ void FilterControls::update_trans_dz_display(int value) ui.trans_dz->setText(QString::number(value * s.mult_trans_dz) + "mm"); } -extern "C" OPENTRACK_EXPORT IFilterDialog* GetDialog() -{ - return new FilterControls; -} |