Arduino A2DP
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
config.h
1 #pragma once
2 
3 #ifndef AUTOCONNECT_TRY_NUM
4 # define AUTOCONNECT_TRY_NUM 1000
5 #endif
6 
7 // Activate I2S Support (legacy i2s)
8 #ifndef A2DP_LEGACY_I2S_SUPPORT
9 # define A2DP_LEGACY_I2S_SUPPORT (ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 0, 0))
10 #endif
11 
12 // Use https://pschatzmann.github.io/arduino-audio-tools for output
13 #ifndef A2DP_I2S_AUDIOTOOLS
14 # if __has_include("AudioTools.h")
15 # define A2DP_I2S_AUDIOTOOLS 1
16 # endif
17 #endif
18 
19 #ifndef A2DP_SPP_SUPPORT
20 # define A2DP_SPP_SUPPORT (ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 0, 0))
21 #endif
22 
23 // Maximum write size
24 #ifndef A2DP_I2S_MAX_WRITE_SIZE
25 # define A2DP_I2S_MAX_WRITE_SIZE 1024 * 5
26 #endif
27 
28 // Maximum wait time for status change in 100 ms when calling end()
29 #ifndef A2DP_DISCONNECT_LIMIT
30 # define A2DP_DISCONNECT_LIMIT 20
31 #endif