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// Activate SPP Support
20#ifndef A2DP_SPP_SUPPORT
21# define A2DP_SPP_SUPPORT 1
22#endif
23
24// Maximum write size
25#ifndef A2DP_I2S_MAX_WRITE_SIZE
26# define A2DP_I2S_MAX_WRITE_SIZE 1024 * 5
27#endif
28
29#ifndef A2DP_I2S_MAX_WRITE_DELAY_MS
30# define A2DP_I2S_MAX_WRITE_DELAY_MS 0
31#endif
32
33// Maximum wait time for status change in 100 ms when calling end()
34#ifndef A2DP_DISCONNECT_LIMIT
35# define A2DP_DISCONNECT_LIMIT 20
36#endif