From 16e3983e11043cb662c9332982ae4edd5355c77c Mon Sep 17 00:00:00 2001 From: VKamyshniy Date: Thu, 30 Oct 2014 01:16:29 +0200 Subject: [PATCH] [Summary] Temporarily set unlimited samples per pixel for temporal wave zoom. --- gtk2_ardour/editor.cc | 5 ++++- gtk2_ardour/product_definition.h | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 4ceac4b03b..6f7085fecd 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -19,6 +19,8 @@ /* Note: public Editor methods are documented in public_editor.h */ +#include "product_definition.h" + #include #include #include @@ -4353,10 +4355,11 @@ Editor::set_samples_per_pixel (framecnt_t spp) /* if the zoom level is greater than what you'd get trying to display 3 * days of audio on a really big screen, then it's too big. */ - +#if !UNLIMITED_TEMPORAL_ZOOM // TRACKS needs no limitations if (spp * lots_of_pixels > three_days) { return; } +#endif samples_per_pixel = spp; update_horizontal_adjustment_limits(); diff --git a/gtk2_ardour/product_definition.h b/gtk2_ardour/product_definition.h index b636f9bda7..4c382e8a74 100644 --- a/gtk2_ardour/product_definition.h +++ b/gtk2_ardour/product_definition.h @@ -21,5 +21,6 @@ #define __ardour_gtk_product_definition_h__ #define APPLICATION_NAME "Tracks Live" +#define UNLIMITED_TEMPORAL_ZOOM 1 #endif /* __ardour_gtk_product_definition_h__ */