summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/analysis.c2
-rw-r--r--src/analysis.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/analysis.c b/src/analysis.c
index 9a3162af..5a76d947 100644
--- a/src/analysis.c
+++ b/src/analysis.c
@@ -848,7 +848,7 @@ void run_analysis(TonalityAnalysisState *analysis, const CELTMode *celt_mode, co
if (analysis_pcm != NULL)
{
/* Avoid overflow/wrap-around of the analysis buffer */
- analysis_frame_size = IMIN((DETECT_SIZE-5)*Fs/100, analysis_frame_size);
+ analysis_frame_size = IMIN((DETECT_SIZE-5)*Fs/50, analysis_frame_size);
pcm_len = analysis_frame_size - analysis->analysis_offset;
offset = analysis->analysis_offset;
diff --git a/src/analysis.h b/src/analysis.h
index 2cee243d..0d47a9ea 100644
--- a/src/analysis.h
+++ b/src/analysis.h
@@ -35,7 +35,7 @@
#define NB_TBANDS 18
#define ANALYSIS_BUF_SIZE 720 /* 15 ms at 48 kHz */
-#define DETECT_SIZE 200
+#define DETECT_SIZE 100
/* Uncomment this to print the MLP features on stdout. */
/*#define MLP_TRAINING*/