summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2013-03-28 15:38:55 +0000
committererdgeist <>2013-03-28 15:38:55 +0000
commit626486a3916b5276dc6b5b6c8b63db87e73278d2 (patch)
treea512a24a5e3520ffdb6cbe4a8ad9f23619cdf55e
parent37cbb8ec1871134e3cccfb30938cad0da791eaf3 (diff)
Remove superflous includes, comment out debug code
-rw-r--r--timestretch.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/timestretch.c b/timestretch.c
index 8baa7c8..14ed732 100644
--- a/timestretch.c
+++ b/timestretch.c
@@ -2,8 +2,6 @@
2#include <stdio.h> 2#include <stdio.h>
3#include <stdint.h> 3#include <stdint.h>
4#include <string.h> 4#include <string.h>
5#include <float.h>
6#include <math.h>
7#include <fcntl.h> 5#include <fcntl.h>
8#include <unistd.h> 6#include <unistd.h>
9#include <inttypes.h> 7#include <inttypes.h>
@@ -84,7 +82,7 @@ static unsigned int find_corr_max(const short *input, const short *mixbuf) {
84 } 82 }
85 } 83 }
86 84
87printf( "%03d %016llX\n", offs, corr_max ); 85//printf( "%03d %016llX\n", offs, corr_max );
88 return offs; 86 return offs;
89} 87}
90 88
@@ -101,7 +99,7 @@ size_t process_frame( short *input, short *output, short *overlap ) {
101 } else { 99 } else {
102 offset = find_corr_max( input, overlap ); 100 offset = find_corr_max( input, overlap );
103 101
104 // Mix end of last frame with begin of this frame 102 // Cross fade end of last frame with begin of this frame
105 for (i = 0; i < (int)g_overlap ; ++i, --i_ ) 103 for (i = 0; i < (int)g_overlap ; ++i, --i_ )
106 output[i] = ( i_ * overlap[i] + i * input[i+offset] ) / (int)g_overlap; 104 output[i] = ( i_ * overlap[i] + i * input[i+offset] ) / (int)g_overlap;
107 105