aboutsummaryrefslogtreecommitdiffstats
path: root/media-libs/eq10q/files
diff options
context:
space:
mode:
authorla-ninpre <leobrekalini@gmail.com>2022-08-28 11:46:21 +0300
committerla-ninpre <leobrekalini@gmail.com>2022-08-28 11:46:21 +0300
commit722563895cae913b94f392acf25aae3cfcf2731f (patch)
tree3f7f5f85fe59ba8f65bc30477148e97055de90eb /media-libs/eq10q/files
parent4ad31b69b769808d15df83885a8c8ea0cd59ae66 (diff)
downloadla-ninpre-overlay-722563895cae913b94f392acf25aae3cfcf2731f.tar.gz
la-ninpre-overlay-722563895cae913b94f392acf25aae3cfcf2731f.zip
media-libs/eq10q: new package, add 2.2
Diffstat (limited to 'media-libs/eq10q/files')
-rw-r--r--media-libs/eq10q/files/eq10q-2.2-lv2.patch44
-rw-r--r--media-libs/eq10q/files/eq10q-2.2-pow10.patch69
2 files changed, 113 insertions, 0 deletions
diff --git a/media-libs/eq10q/files/eq10q-2.2-lv2.patch b/media-libs/eq10q/files/eq10q-2.2-lv2.patch
new file mode 100644
index 0000000..7839a03
--- /dev/null
+++ b/media-libs/eq10q/files/eq10q-2.2-lv2.patch
@@ -0,0 +1,44 @@
+--- a/gui/bassup_ui.cpp
++++ b/gui/bassup_ui.cpp
+@@ -38,7 +38,7 @@ using namespace std;
+ #define BASSUP_GUI_URI "http://eq10q.sourceforge.net/bassup/gui"
+
+
+-static LV2UI_Handle instantiateBassUp_gui(const _LV2UI_Descriptor *descriptor, const char *plugin_uri, const char *bundle_path, LV2UI_Write_Function write_function, LV2UI_Controller controller, LV2UI_Widget *widget, const LV2_Feature *const *features)
++static LV2UI_Handle instantiateBassUp_gui(const LV2UI_Descriptor *descriptor, const char *plugin_uri, const char *bundle_path, LV2UI_Write_Function write_function, LV2UI_Controller controller, LV2UI_Widget *widget, const LV2_Feature *const *features)
+ {
+ #ifdef TESTING_EQ10Q
+ cout<<"instantiateEq10q_gui Entring... ";
+--- a/gui/dyn_ui.cpp
++++ b/gui/dyn_ui.cpp
+@@ -37,7 +37,7 @@ This plugin is inside the Sapista Plugins Bundle
+ using namespace std;
+ #endif
+
+-static LV2UI_Handle instantiateDyn_gui(const _LV2UI_Descriptor *descriptor, const char *plugin_uri, const char *bundle_path, LV2UI_Write_Function write_function, LV2UI_Controller controller, LV2UI_Widget *widget, const LV2_Feature *const *features)
++static LV2UI_Handle instantiateDyn_gui(const LV2UI_Descriptor *descriptor, const char *plugin_uri, const char *bundle_path, LV2UI_Write_Function write_function, LV2UI_Controller controller, LV2UI_Widget *widget, const LV2_Feature *const *features)
+ {
+ #ifdef TESTING_EQ10Q
+ cout<<"instantiateDyn_gui Entring... ";
+--- a/gui/eq10q_ui.cpp
++++ b/gui/eq10q_ui.cpp
+@@ -38,7 +38,7 @@ using namespace std;
+ #endif
+
+
+-static LV2UI_Handle instantiateEq10q_gui(const _LV2UI_Descriptor *descriptor, const char *plugin_uri, const char *bundle_path, LV2UI_Write_Function write_function, LV2UI_Controller controller, LV2UI_Widget *widget, const LV2_Feature *const *features)
++static LV2UI_Handle instantiateEq10q_gui(const LV2UI_Descriptor *descriptor, const char *plugin_uri, const char *bundle_path, LV2UI_Write_Function write_function, LV2UI_Controller controller, LV2UI_Widget *widget, const LV2_Feature *const *features)
+ {
+ #ifdef TESTING_EQ10Q
+ cout<<"instantiateEq10q_gui Entring... ";
+--- a/gui/midside_ui.cpp
++++ b/gui/midside_ui.cpp
+@@ -37,7 +37,7 @@ This plugin is inside the Sapista Plugins Bundle
+ using namespace std;
+ #endif
+
+-static LV2UI_Handle instantiateMidSide_gui(const _LV2UI_Descriptor *descriptor, const char *plugin_uri, const char *bundle_path, LV2UI_Write_Function write_function, LV2UI_Controller controller, LV2UI_Widget *widget, const LV2_Feature *const *features)
++static LV2UI_Handle instantiateMidSide_gui(const LV2UI_Descriptor *descriptor, const char *plugin_uri, const char *bundle_path, LV2UI_Write_Function write_function, LV2UI_Controller controller, LV2UI_Widget *widget, const LV2_Feature *const *features)
+ {
+ #ifdef TESTING_EQ10Q
+ cout<<"instantiateEq10q_gui Entring... ";
diff --git a/media-libs/eq10q/files/eq10q-2.2-pow10.patch b/media-libs/eq10q/files/eq10q-2.2-pow10.patch
new file mode 100644
index 0000000..ff1314c
--- /dev/null
+++ b/media-libs/eq10q/files/eq10q-2.2-pow10.patch
@@ -0,0 +1,69 @@
+--- a/gui/widgets/bandctl.cpp
++++ b/gui/widgets/bandctl.cpp
+@@ -949,7 +949,7 @@ bool BandCtl::parseBtnString(BandCtl::Button* btn)
+ if(str_k.length() > 0)
+ {
+ val_k = atof(str_k.c_str()) * 1e3;
+- val *= pow10(3.0 - str.length());
++ val *= exp10(3.0 - str.length());
+ if(str.length() > 3)
+ {
+ //throw an error, imposible to match str > 3 with k
+@@ -960,7 +960,7 @@ bool BandCtl::parseBtnString(BandCtl::Button* btn)
+ }
+ if(str_d.length() > 0)
+ {
+- val_d = atof(str_d.c_str())/ pow10((double)str_d.length());
++ val_d = atof(str_d.c_str())/ exp10((double)str_d.length());
+ }
+
+ btn->value = val + val_k + val_d;
+--- a/gui/widgets/bodeplot.cpp
++++ b/gui/widgets/bodeplot.cpp
+@@ -194,14 +194,14 @@ void PlotEQCurve::resetCenterSpan()
+ {
+ //Compute center and span for the full range spectrum
+ double sp = log10(MAX_FREQ/MIN_FREQ);
+- double cn = MIN_FREQ * sqrt(pow10(sp));
++ double cn = MIN_FREQ * sqrt(exp10(sp));
+ setCenterSpan(cn, sp);
+ }
+
+ void PlotEQCurve::setCenterSpan(double center, double span)
+ {
+- m_minFreq = center / sqrt(pow10(span));
+- m_maxFreq = center * sqrt(pow10(span));
++ m_minFreq = center / sqrt(exp10(span));
++ m_maxFreq = center * sqrt(exp10(span));
+
+ //Initalize the grid
+ const double f_grid[GRID_VERTICAL_LINES] = {20.0, 30.0, 40.0, 50.0, 60.0, 70.0, 80.0, 90.0,
+@@ -246,8 +246,8 @@ void PlotEQCurve::setCenter(double center)
+ {
+ //Limit center to the possible range according the current span
+ double sp = log10(m_maxFreq/m_minFreq);
+- double cmin = MIN_FREQ * sqrt(pow10(sp));
+- double cmax = MAX_FREQ / sqrt(pow10(sp));
++ double cmin = MIN_FREQ * sqrt(exp10(sp));
++ double cmax = MAX_FREQ / sqrt(exp10(sp));
+
+ double cn = center;
+ cn = cn > cmax ? cmax : cn;
+@@ -259,7 +259,7 @@ void PlotEQCurve::setSpan(double span)
+ {
+ //Limit center to the possible range according the current span
+ double sp_act = log10(m_maxFreq/m_minFreq);
+- double cn = m_minFreq * sqrt(pow10(sp_act));
++ double cn = m_minFreq * sqrt(exp10(sp_act));
+ double smax1 = 2.0*log10(cn/MIN_FREQ);
+ double smax2= 2.0*log10(MAX_FREQ/cn);
+ double smax = smax1 < smax2 ? smax1 : smax2;
+@@ -306,7 +306,7 @@ void PlotEQCurve::recomputeCenterFreq(double xDiff)
+ double fmax = MIN_FREQ*pow((MAX_FREQ/MIN_FREQ),((local_x2 + 3.5)/((double)m_zoom_surface_ptr->get_width())));
+
+ double sp_act = log10(fmax/fmin);
+- double cn = fmin * sqrt(pow10(sp_act));
++ double cn = fmin * sqrt(exp10(sp_act));
+ setCenter(cn);
+ }
+