1 #pragma once
2 
3 #include "engine/engine.h"
4 
5 namespace mixxx {
6 
7 // Analysis is done in blocks to avoid dynamic allocation of memory
8 // depending on the track length. A block size of 4096 frames per block
9 // seems to do fine. Signal processing during analysis uses the same,
10 // fixed number of channels like the engine does, usually 2 = stereo.
11 constexpr audio::ChannelCount kAnalysisChannels = mixxx::kEngineChannelCount;
12 constexpr SINT kAnalysisFramesPerChunk = 4096;
13 constexpr SINT kAnalysisSamplesPerChunk =
14         kAnalysisFramesPerChunk * kAnalysisChannels;
15 
16 // Only analyze the first minute in fast-analysis mode.
17 constexpr int kFastAnalysisSecondsToAnalyze = 60;
18 
19 }  // namespace mixxx
20