forked from spotify/echoprint-codegen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParams.h
More file actions
27 lines (21 loc) · 631 Bytes
/
Params.h
File metadata and controls
27 lines (21 loc) · 631 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//
// echoprint-codegen
// Copyright 2011 The Echo Nest Corporation. All rights reserved.
//
#ifndef PARAMS_H
#define PARAMS_H
#include "Common.h"
namespace Params {
namespace AudioStreamInput {
const float SamplingRate = 11025.0f;
const uint Channels = 1;
const float SecondsPerChunk = 10.0f;
const uint BytesPerSample = 4; // floats
#ifdef _LP64
const uint MaxSamples = 133000000; // 201 minutes @ 11025 samples per second.
#else
const uint MaxSamples = 66977792; // TODO: Remove this, or set it intelligently, at least. Good for 32-bit analyzer.
#endif
}
}
#endif