[SCM] calf/master: + Monosynth: do not generate waveforms unless a plugin or GUI is instantiated

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:37:21 UTC 2013


The following commit has been merged in the master branch:
commit 53185409353a7b262c8ca268d8c78bd8171afffa
Author: kfoltman <kfoltman at 78b06b96-2940-0410-b7fc-879d825d01d8>
Date:   Sat Jun 28 18:15:22 2008 +0000

    + Monosynth: do not generate waveforms unless a plugin or GUI is instantiated
    
    
    git-svn-id: https://calf.svn.sourceforge.net/svnroot/calf/trunk@215 78b06b96-2940-0410-b7fc-879d825d01d8

diff --git a/src/monosynth.cpp b/src/monosynth.cpp
index 945c581..49b321c 100644
--- a/src/monosynth.cpp
+++ b/src/monosynth.cpp
@@ -229,6 +229,7 @@ const char *monosynth_audio_module::get_gui_xml()
 }
 
 void monosynth_audio_module::activate() {
+    monosynth_audio_module::generate_waves();
     running = false;
     output_pos = 0;
     queue_note_on = -1;
@@ -352,13 +353,9 @@ void monosynth_audio_module::generate_waves()
     waves[wave_test8].make(bl, data);
 }
 
-void __attribute__((constructor)) generate_monosynth_waves() 
-{
-    monosynth_audio_module::generate_waves();
-}
-
 bool monosynth_audio_module::get_static_graph(int index, int subindex, float value, float *data, int points, cairo_t *context)
 {
+    monosynth_audio_module::generate_waves();
     if (index == par_wave1 || index == par_wave2) {
         if (subindex)
             return false;
@@ -375,6 +372,7 @@ bool monosynth_audio_module::get_static_graph(int index, int subindex, float val
 
 bool monosynth_audio_module::get_graph(int index, int subindex, float *data, int points, cairo_t *context)
 {
+    monosynth_audio_module::generate_waves();
     // printf("get_graph %d %p %d wave1=%d wave2=%d\n", index, data, points, wave1, wave2);
     if (index == par_filtertype) {
         if (!running)

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list