Arduino A2DP
Loading...
Searching...
No Matches
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#ifndef A2DP_I2S_MAX_WRITE_DELAY_MS
29# define A2DP_I2S_MAX_WRITE_DELAY_MS 0
30#endif
31
32// Maximum wait time for status change in 100 ms when calling end()
33#ifndef A2DP_DISCONNECT_LIMIT
34# define A2DP_DISCONNECT_LIMIT 20
35#endif