Go to the source code of this file.
|
| namespace | audio_tools |
| | Generic Implementation of sound input and output for desktop environments using portaudio.
|
| |
|
| #define | MIN(A, B) ((A) < (B) ? (A) : (B)) |
| |
|
| enum | I2SFormat {
I2S_STD_FORMAT
, I2S_LSB_FORMAT
, I2S_MSB_FORMAT
, I2S_PHILIPS_FORMAT
,
I2S_RIGHT_JUSTIFIED_FORMAT
, I2S_LEFT_JUSTIFIED_FORMAT
, I2S_PCM
} |
| | I2S Formats. More...
|
| |
| enum | I2SSignalType { Digital
, Analog
, PDM
, TDM
} |
| | I2S Signal Types: Digital, Analog, PDM. More...
|
| |
| enum | MemoryType { RAM
, PS_RAM
, FLASH_RAM
} |
| | Memory types. More...
|
| |
| enum | RxTxMode { UNDEFINED_MODE = 0
, TX_MODE = 1
, RX_MODE = 2
, RXTX_MODE = 3
} |
| | The Microcontroller is the Audio Source (TX_MODE) or Audio Sink (RX_MODE). RXTX_MODE is Source and Sink at the same time! More...
|
| |
| enum | TimeUnit { MS
, US
, HZ
} |
| | Time Units. More...
|
| |
|
| template<typename T > |
| T | mapT (T x, T in_min, T in_max, T out_min, T out_max) |
| | Similar to Arduino map function but using floats.
|
| |
| template<typename T > |
| T | readSample (Stream *p_stream) |
| | guaranteed to return the requested data
|
| |
| template<typename T > |
| size_t | readSamples (Stream *p_stream, T *data, int samples, int retryCount=-1) |
| | guaranteed to return the requested data
|
| |
| void | waitFor (bool &flag) |
| | wait for flag to be active
|
| |
| template<typename T > |
| size_t | writeData (Print *p_out, T *data, int samples, int maxSamples=512) |
| |
| template<typename T , class P > |
| size_t | writeDataT (P *p_out, T *data, int samples, int maxSamples=512) |
| | guaranteed to return the requested data
|
| |
◆ MIN
| #define MIN |
( |
|
A, |
|
|
|
B |
|
) |
| ((A) < (B) ? (A) : (B)) |