Arduino LibHelix

ConfigHelix.h
1 #pragma once
2
3 // Common
4 #ifndef SYNCH_WORD_LEN
5 # define SYNCH_WORD_LEN 4
6 #endif
7
8 #ifndef HELIX_CHUNK_SIZE
9 # define HELIX_CHUNK_SIZE 1024
10 #endif
11
12 // mp3
13 #ifndef MP3_MAX_OUTPUT_SIZE
14 # define MP3_MAX_OUTPUT_SIZE 1024 * 5
15 #endif
16 #ifndef MP3_MAX_FRAME_SIZE
17 # define MP3_MAX_FRAME_SIZE 1024 * 2
18 #endif
19 #ifndef MP3_MIN_FRAME_SIZE
20 # define MP3_MIN_FRAME_SIZE 1024
21 #endif
22
23 // aac
24 #ifndef AAC_MAX_OUTPUT_SIZE
25 # define AAC_MAX_OUTPUT_SIZE 1024 * 8
26 #endif
27 #ifndef AAC_MAX_FRAME_SIZE
28 # define AAC_MAX_FRAME_SIZE 2100
29 #endif
30 #ifndef AAC_MIN_FRAME_SIZE
31 # define AAC_MIN_FRAME_SIZE 1024
32 #endif
33
34 // Allocation: define allocator to be used
35 #define ALLOCATOR libhelix::AllocatorExt
36
37 // Logging: Activate/Deactivate logging
38 #if !defined(HELIX_LOGGING_ACTIVE)
39 # define HELIX_LOGGING_ACTIVE true
40 #endif
41
42 #ifndef HELIX_LOG_LEVEL
43 # define HELIX_LOG_LEVEL LogLevelHelix::Warning
44 #endif
45
46 #ifndef LOG_METHOD
47 # define LOG_METHOD __PRETTY_FUNCTION__
48 #endif
49
50 #ifndef HELIX_LOGGING_OUT
51 # define HELIX_LOGGING_OUT Serial
52 #endif
53
55 #if HELIX_LOGGING_ACTIVE && defined(ESP32) && !defined(ARDUINO)
56 # define USE_IDF_LOGGER
57 #endif
58
59 #ifndef HELIX_LOG_SIZE
60 # define HELIX_LOG_SIZE 256
61 #endif
62
64 #ifndef ESP8266
65 # define HELIX_FEATURE_AUDIO_CODEC_AAC_SBR
66 #endif