traverso-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Traverso-commit] traverso/src/core Peak.cpp Peak.h


From: Remon Sijrier
Subject: [Traverso-commit] traverso/src/core Peak.cpp Peak.h
Date: Mon, 12 Nov 2007 18:54:10 +0000

CVSROOT:        /sources/traverso
Module name:    traverso
Changes by:     Remon Sijrier <r_sijrier>       07/11/12 18:54:10

Modified files:
        src/core       : Peak.cpp Peak.h 

Log message:
        * Use ~ 1/4 the range of peak_data_t (== short) so we have headroom for 
samples in the range [-4, +4] or + 12 dB

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/core/Peak.cpp?cvsroot=traverso&r1=1.76&r2=1.77
http://cvs.savannah.gnu.org/viewcvs/traverso/src/core/Peak.h?cvsroot=traverso&r1=1.27&r2=1.28

Patches:
Index: Peak.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/core/Peak.cpp,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -b -r1.76 -r1.77
--- Peak.cpp    9 Nov 2007 14:08:48 -0000       1.76
+++ Peak.cpp    12 Nov 2007 18:54:10 -0000      1.77
@@ -42,7 +42,7 @@
 
 #define NORMALIZE_CHUNK_SIZE   10000
 #define PEAKFILE_MAJOR_VERSION 1
-#define PEAKFILE_MINOR_VERSION 3
+#define PEAKFILE_MINOR_VERSION 4
 
 int Peak::zoomStep[] = {
        // non-cached zoomlevels.

Index: Peak.h
===================================================================
RCS file: /sources/traverso/traverso/src/core/Peak.h,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -b -r1.27 -r1.28
--- Peak.h      9 Nov 2007 14:08:48 -0000       1.27
+++ Peak.h      12 Nov 2007 18:54:10 -0000      1.28
@@ -98,9 +98,9 @@
        static const int ZOOM_LEVELS = 20;
        static const int SAVING_ZOOM_FACTOR = 6;
        static const int MAX_ZOOM_USING_SOURCEFILE = SAVING_ZOOM_FACTOR - 1;
-       // Use ~ 1/2 the range of peak_data_t (== short) so we have headroom
-       // for samples that lay beyond the range [-1, 1]
-       static const int MAX_DB_VALUE = 16000;
+       // Use ~ 1/4 the range of peak_data_t (== short) so we have headroom
+       // for samples in the range [-4, +4] or + 12 dB
+       static const int MAX_DB_VALUE = 8000;
        static int zoomStep[ZOOM_LEVELS + 1];
 
        Peak(AudioSource* source);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]