PATCH: Increase maximum FFT update frequency.

David Nielson <[email protected]> Mon, 28 Mar 2011 23:28:00 -0600
Newsgroups gmane.comp.audio.jamin.devel
Message-ID <[email protected]>
I've never submitted a patch before to anything, so if I've done this 
wrong, I apologize: please let me know how I can do it better in the future.

David Nielson

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar

_______________________________________________
Jamin-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jamin-devel
jamin.patch (text/x-patch, 2.1 KB)
diff -Nurp jamin-0.95.0//jam-ui.glade jamin-0.95.0-fast//jam-ui.glade
--- jamin-0.95.0//jam-ui.glade	2005-04-05 18:06:09.000000000 -0600
+++ jamin-0.95.0-fast//jam-ui.glade	2011-03-28 23:12:48.999630000 -0600
@@ -7646,7 +7646,7 @@
 			  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
 			  <property name="snap_to_ticks">False</property>
 			  <property name="wrap">False</property>
-			  <property name="adjustment">10 0 10 1 1 1</property>
+			  <property name="adjustment">25 0 25 1 1 1</property>
 			  <signal name="focus_in_event" handler="on_text_focus_in_event" last_modification_time="Sun, 30 Jan 2005 18:03:37 GMT"/>
 			  <signal name="focus_out_event" handler="on_text_focus_out_event" last_modification_time="Sun, 30 Jan 2005 18:03:51 GMT"/>
 			  <signal name="value_changed" handler="on_UpdateFrequencySpin_value_changed" last_modification_time="Sun, 30 Jan 2005 18:03:55 GMT"/>
diff -Nurp jamin-0.95.0//src/interface.c jamin-0.95.0-fast//src/interface.c
--- jamin-0.95.0//src/interface.c	2005-04-05 18:06:14.000000000 -0600
+++ jamin-0.95.0-fast//src/interface.c	2011-03-28 23:13:12.197630002 -0600
@@ -4825,7 +4825,7 @@ create_pref_dialog (void)
   gtk_widget_show (UpdateFrequencyLabel);
   gtk_box_pack_start (GTK_BOX (hbox73), UpdateFrequencyLabel, FALSE, FALSE, 0);
 
-  UpdateFrequencySpin_adj = gtk_adjustment_new (10, 0, 10, 1, 1, 1);
+  UpdateFrequencySpin_adj = gtk_adjustment_new (25, 0, 25, 1, 1, 1);
   UpdateFrequencySpin = gtk_spin_button_new (GTK_ADJUSTMENT (UpdateFrequencySpin_adj), 1, 0);
   gtk_widget_set_name (UpdateFrequencySpin, "UpdateFrequencySpin");
   gtk_widget_show (UpdateFrequencySpin);
diff -Nurp jamin-0.95.0//src/main.c jamin-0.95.0-fast//src/main.c
--- jamin-0.95.0//src/main.c	2005-03-18 13:48:17.000000000 -0700
+++ jamin-0.95.0-fast//src/main.c	2011-03-28 23:12:24.623630000 -0600
@@ -145,7 +145,7 @@ int main(int argc, char *argv[])
        without modifying the spectrum and status updates which are depending
        on it being 10/sec.  */
 
-    g_timeout_add (100, update_meters, NULL);
+    g_timeout_add (40, update_meters, NULL);
 
 
     /* If the filename has been set, load it */