arduino-audio-tools
Loading...
Searching...
No Matches
Namespaces | Macros | Typedefs
AudioToolsConfig.h File Reference
#include "AudioTools/PlatformConfig/desktop.h"
#include "AudioTools/CoreAudio/AudioRuntime.h"
#include "AudioTools/PlatformConfig/esp32.h"
#include "AudioTools/PlatformConfig/esp8266.h"
#include "AudioTools/PlatformConfig/rp2040mbed.h"
#include "AudioTools/PlatformConfig/avr.h"
#include "AudioTools/PlatformConfig/stm32.h"
#include "AudioTools/PlatformConfig/samd.h"
#include "AudioTools/PlatformConfig/unor4.h"
#include "AudioTools/CoreAudio/AudioBasic/Int24_3bytes_t.h"
#include "AudioTools/CoreAudio/AudioBasic/Int24_4bytes_t.h"
#include "AudioTools/CoreAudio/AudioBasic/FloatAudio.h"

Go to the source code of this file.

Namespaces

namespace  audio_tools
 Generic Implementation of sound input and output for desktop environments using portaudio.
 

Macros

#define A2DP_BUFFER_COUNT   30
 
#define A2DP_BUFFER_SIZE   512
 
#define ANALOG_BUFFER_COUNT   6
 
#define ANALOG_BUFFER_SIZE   512
 
#define AUDIO_INCLUDE_CORE   true
 
#define AUDIOTOOLS_MAJOR_VERSION   1
 
#define AUDIOTOOLS_MINOR_VERSION   1
 
#define AUDIOTOOLS_VERSION   "1.1.3"
 AutioTools Configuration.
 
#define CHECK_MEMORY()
 
#define CODEC_DELAY_MS   10
 
#define COPY_DELAY_ON_NODATA   10
 
#define COPY_RETRY_LIMIT   20
 
#define DEFAULT_BITS_PER_SAMPLE   16
 
#define DEFAULT_BUFFER_SIZE   1024
 Common Default Settings that can usually be changed in the API.
 
#define DEFAULT_CHANNELS   2
 
#define DEFAULT_SAMPLE_RATE   44100
 
#define ESP_IDF_VERSION_VAL(a, b, c)   0
 
#define HTTP_CHUNKED_SIZE_MAX_LEN   80
 
#define HTTP_MAX_LEN   1024
 
#define I2S_BUFFER_COUNT   6
 
#define I2S_BUFFER_SIZE   512
 
#define I2S_DEFAULT_PORT   0
 
#define LOG_LEVEL   AudioLogger::Warning
 
#define LOG_METHOD   __PRETTY_FUNCTION__
 
#define LOG_PRINTF_BUFFER_SIZE   303
 
#define LOG_STREAM   Serial
 
#define MAX_SINGLE_CHARS   8
 
#define PREFER_FIXEDPOINT   false
 
#define PWM_AUDIO_FREQUENCY   30000
 
#define PWM_BUFFER_COUNT   4
 
#define PWM_BUFFER_SIZE   1024
 PWM.
 
#define PWM_MAX_SAMPLE_RATE   8000
 
#define USE_ALLOCATOR   false
 
#define USE_AUDIO_LOGGING   true
 Logging Logging Configuration in Arduino -> set USE_AUDIO_LOGGING to false if you want to deactivate Logging. When using cmake you can set -DUSE_AUDIO_LOGGING=false You can also change the LOG_LEVEL and LOG_STREAM here. However it is recommended to do it in your Sketch e.g with AudioLogger::instance().begin(Serial,AudioLogger::Warning);.
 
#define USE_AUDIOTOOLS_NS   true
 
#define USE_CHECK_MEMORY   false
 
#define USE_ESP32_LOGGER   false
 
#define USE_OBSOLETE   false
 
#define USE_RESAMPLE_BUFFER   true
 
#define USE_STREAM_WRITE_OVERRIDE
 
#define USE_TASK   false
 
#define VS1053_DEFAULT_VOLUME   0.7
 
#define VS1053_EXT   1
 Platform specific Settings.
 

Typedefs

using int24_t = audio_tools::int24_4bytes_t
 

Macro Definition Documentation

◆ A2DP_BUFFER_COUNT

#define A2DP_BUFFER_COUNT   30

◆ A2DP_BUFFER_SIZE

#define A2DP_BUFFER_SIZE   512

◆ ANALOG_BUFFER_COUNT

#define ANALOG_BUFFER_COUNT   6

◆ ANALOG_BUFFER_SIZE

#define ANALOG_BUFFER_SIZE   512

◆ AUDIO_INCLUDE_CORE

#define AUDIO_INCLUDE_CORE   true

◆ AUDIOTOOLS_MAJOR_VERSION

#define AUDIOTOOLS_MAJOR_VERSION   1

◆ AUDIOTOOLS_MINOR_VERSION

#define AUDIOTOOLS_MINOR_VERSION   1

◆ AUDIOTOOLS_VERSION

#define AUDIOTOOLS_VERSION   "1.1.3"

AutioTools Configuration.

Author
Phil Schatzmann

◆ CHECK_MEMORY

#define CHECK_MEMORY ( )

◆ CODEC_DELAY_MS

#define CODEC_DELAY_MS   10

◆ COPY_DELAY_ON_NODATA

#define COPY_DELAY_ON_NODATA   10

◆ COPY_RETRY_LIMIT

#define COPY_RETRY_LIMIT   20

◆ DEFAULT_BITS_PER_SAMPLE

#define DEFAULT_BITS_PER_SAMPLE   16

◆ DEFAULT_BUFFER_SIZE

#define DEFAULT_BUFFER_SIZE   1024

Common Default Settings that can usually be changed in the API.

◆ DEFAULT_CHANNELS

#define DEFAULT_CHANNELS   2

◆ DEFAULT_SAMPLE_RATE

#define DEFAULT_SAMPLE_RATE   44100

◆ ESP_IDF_VERSION_VAL

#define ESP_IDF_VERSION_VAL (   a,
  b,
 
)    0

◆ HTTP_CHUNKED_SIZE_MAX_LEN

#define HTTP_CHUNKED_SIZE_MAX_LEN   80

◆ HTTP_MAX_LEN

#define HTTP_MAX_LEN   1024

◆ I2S_BUFFER_COUNT

#define I2S_BUFFER_COUNT   6

◆ I2S_BUFFER_SIZE

#define I2S_BUFFER_SIZE   512

◆ I2S_DEFAULT_PORT

#define I2S_DEFAULT_PORT   0

◆ LOG_LEVEL

#define LOG_LEVEL   AudioLogger::Warning

◆ LOG_METHOD

#define LOG_METHOD   __PRETTY_FUNCTION__

◆ LOG_PRINTF_BUFFER_SIZE

#define LOG_PRINTF_BUFFER_SIZE   303

◆ LOG_STREAM

#define LOG_STREAM   Serial

◆ MAX_SINGLE_CHARS

#define MAX_SINGLE_CHARS   8

◆ PREFER_FIXEDPOINT

#define PREFER_FIXEDPOINT   false

◆ PWM_AUDIO_FREQUENCY

#define PWM_AUDIO_FREQUENCY   30000

◆ PWM_BUFFER_COUNT

#define PWM_BUFFER_COUNT   4

◆ PWM_BUFFER_SIZE

#define PWM_BUFFER_SIZE   1024

PWM.

◆ PWM_MAX_SAMPLE_RATE

#define PWM_MAX_SAMPLE_RATE   8000

◆ USE_ALLOCATOR

#define USE_ALLOCATOR   false

◆ USE_AUDIO_LOGGING

#define USE_AUDIO_LOGGING   true

Logging Logging Configuration in Arduino -> set USE_AUDIO_LOGGING to false if you want to deactivate Logging. When using cmake you can set -DUSE_AUDIO_LOGGING=false You can also change the LOG_LEVEL and LOG_STREAM here. However it is recommended to do it in your Sketch e.g with AudioLogger::instance().begin(Serial,AudioLogger::Warning);.

◆ USE_AUDIOTOOLS_NS

#define USE_AUDIOTOOLS_NS   true

◆ USE_CHECK_MEMORY

#define USE_CHECK_MEMORY   false

◆ USE_ESP32_LOGGER

#define USE_ESP32_LOGGER   false

◆ USE_OBSOLETE

#define USE_OBSOLETE   false

◆ USE_RESAMPLE_BUFFER

#define USE_RESAMPLE_BUFFER   true

◆ USE_STREAM_WRITE_OVERRIDE

#define USE_STREAM_WRITE_OVERRIDE

◆ USE_TASK

#define USE_TASK   false

◆ VS1053_DEFAULT_VOLUME

#define VS1053_DEFAULT_VOLUME   0.7

◆ VS1053_EXT

#define VS1053_EXT   1

Platform specific Settings.