[SCM] calf/master: lines in stereo image

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:40:59 UTC 2013


The following commit has been merged in the master branch:
commit f3cc5620cad15daed615fbba341ac591ab58bdd0
Author: Markus Schmidt <schmidt at boomshop.net>
Date:   Tue Mar 6 06:29:18 2012 +0100

    lines in stereo image

diff --git a/src/modules.cpp b/src/modules.cpp
index bff3655..5ae81ac 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -1201,8 +1201,13 @@ bool analyzer_audio_module::get_graph(int index, int subindex, float *data, int
         context->set_source_rgba(0.35, 0.4, 0.2, 0.2);
     }
     if (*params[param_analyzer_mode] == 3) {
-        // draw centered bars
-        *mode = 3;
+        if(*params[param_analyzer_bars]) {
+            // draw centered bars
+            *mode = 3;
+        } else {
+            // draw centered line
+            *mode = 0;
+        }
     } else if(*params[param_analyzer_bars]) {
         if(subindex == 0) {
             // draw bars

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list