arduino-audio-tools
All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Modules Pages
USBAudioConfig.h
1#pragma once
2#include "stdint.h"
3
4namespace audio_tools {
5
7 uint32_t sample_rate = 44100; // Default sample rate
8 uint8_t channels = 2; // Default number of channels
9 uint8_t bits_per_sample = 16; // Default bits per sample
10
11 uint8_t entity_id_input_terminal = 1;
12 uint8_t entity_id_feature_unit = 2;
13 uint8_t entity_id_output_terminal = 3;
14
15 uint8_t ep_in = 0x81; // IN endpoint address (default 0x81)
16 uint8_t ep_out = 0x01; // OUT endpoint address (default 0x01)
17 uint16_t ep_in_size = 256;
18 uint16_t ep_out_size = 256;
19 uint8_t interface_num = 1; // Audio streaming interface number
20 // Moved feature flags and buffer sizes:
21 bool enable_ep_in = true;
22 bool enable_ep_out = true;
23 bool enable_feedback_ep = false;
24 bool enable_ep_in_flow_control = false;
25 bool enable_interrupt_ep = false;
26 bool enable_fifo_mutex = false;
27 bool use_linear_buffer_rx = false;
28 bool use_linear_buffer_tx = false;
29 int audio_count = 1;
30 int as_descr_count = 2; // CFG_TUD_AUDIO_FUNC_1_N_AS_INT
31 int ctrl_buf_size_per_func = 64; // Control buffer size per function
32 int ep_in_buf_size_per_func = 256; // IN endpoint buffer size per function
33 int ep_out_buf_size_per_func = 256; // OUT endpoint buffer size per function
34 int lin_buf_in_size_per_func = 512; // Linear buffer size for IN
35};
36
37} // namespace audio_tools
Generic Implementation of sound input and output for desktop environments using portaudio.
Definition AudioCodecsBase.h:10
Definition USBAudioConfig.h:6