[SCM] calf/master: + Filter: move implementation of get_changed_offsets to .cpp file
js at users.alioth.debian.org
js at users.alioth.debian.org
Tue May 7 15:39:10 UTC 2013
The following commit has been merged in the master branch:
commit a8ea924f0cb442756d42001c970a17d3e75fba06
Author: Krzysztof Foltman <wdev at foltman.com>
Date: Sun Jan 25 12:48:17 2009 +0000
+ Filter: move implementation of get_changed_offsets to .cpp file
diff --git a/configure.ac b/configure.ac
index 237b2cc..1bcc5e3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
-AC_INIT([calf],[0.0.18pre3],[wdev at foltman.com])
+AC_INIT([calf],[0.0.18pre4],[wdev at foltman.com])
AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADER([config.h])
diff --git a/src/calf/modules.h b/src/calf/modules.h
index 7c16ddc..efebfea 100644
--- a/src/calf/modules.h
+++ b/src/calf/modules.h
@@ -721,26 +721,7 @@ public:
}
bool get_graph(int index, int subindex, float *data, int points, cairo_iface *context);
- int get_changed_offsets(int generation, int &subindex_graph, int &subindex_dot, int &subindex_gridline)
- {
- if (fabs(inertia_cutoff.get_last() - old_cutoff) + 100 * fabs(inertia_resonance.get_last() - old_resonance) + fabs(*params[par_mode] - old_mode) > 0.1f)
- {
- old_cutoff = inertia_cutoff.get_last();
- old_resonance = inertia_resonance.get_last();
- old_mode = *params[par_mode];
- last_generation++;
- subindex_graph = 0;
- subindex_dot = INT_MAX;
- subindex_gridline = INT_MAX;
- }
- else {
- subindex_graph = 0;
- subindex_dot = subindex_gridline = generation ? INT_MAX : 0;
- }
- if (generation == last_generation)
- subindex_graph = INT_MAX;
- return last_generation;
- }
+ int get_changed_offsets(int generation, int &subindex_graph, int &subindex_dot, int &subindex_gridline);
};
/// A multitap stereo chorus thing - processing
diff --git a/src/modules_dsp.cpp b/src/modules_dsp.cpp
index a7e5387..1e3fae0 100644
--- a/src/modules_dsp.cpp
+++ b/src/modules_dsp.cpp
@@ -243,6 +243,28 @@ bool filter_audio_module::get_graph(int index, int subindex, float *data, int po
return false;
}
+int filter_audio_module::get_changed_offsets(int generation, int &subindex_graph, int &subindex_dot, int &subindex_gridline)
+{
+ if (fabs(inertia_cutoff.get_last() - old_cutoff) + 100 * fabs(inertia_resonance.get_last() - old_resonance) + fabs(*params[par_mode] - old_mode) > 0.1f)
+ {
+ old_cutoff = inertia_cutoff.get_last();
+ old_resonance = inertia_resonance.get_last();
+ old_mode = *params[par_mode];
+ last_generation++;
+ subindex_graph = 0;
+ subindex_dot = INT_MAX;
+ subindex_gridline = INT_MAX;
+ }
+ else {
+ subindex_graph = 0;
+ subindex_dot = subindex_gridline = generation ? INT_MAX : 0;
+ }
+ if (generation == last_generation)
+ subindex_graph = INT_MAX;
+ return last_generation;
+}
+
+
///////////////////////////////////////////////////////////////////////////////////////////////
bool filterclavier_audio_module::get_graph(int index, int subindex, float *data, int points, cairo_iface *context)
--
calf audio plugins packaging
More information about the pkg-multimedia-commits
mailing list