|
Sound Byte Libs 0.5.1-340-gab5b79a
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Conversion at the DMA boundary: interleaved codec words <-> float L/R buffers. More...
Conversion at the DMA boundary: interleaved codec words <-> float L/R buffers.
The only int <-> float conversion in the audio path. DMA buffers hold interleaved stereo samples in S24RjI32; processing uses separate float L/R buffers in [-1.0, 1.0].
Definition in file convert.hpp.
#include <cstddef>#include <cstdint>Go to the source code of this file.
Namespaces | |
| namespace | sbl |
| Root namespace for all Sound Byte Libs code. | |
| namespace | sbl::dsp |
| The audio stack. | |
| namespace | sbl::dsp::types |
| Conversion at the DMA boundary. | |
Macros | |
| #define | SBL_NAN_DETECTED() ((void)0) |
| Count a NaN replaced by interleave_from_float() | |
Typedefs | |
| using | sbl::dsp::types::S24RjI32 = int32_t |
One sample in the codec's DMA word format, s24_rj_i32 | |
Functions | |
| void | sbl::dsp::types::deinterleave_to_float (const S24RjI32 *interleaved, float *left, float *right, uint16_t frames) |
| Deinterleave stereo codec words into float L/R buffers. | |
| void | sbl::dsp::types::interleave_from_float (const float *left, const float *right, S24RjI32 *interleaved, uint16_t frames) |
| Interleave float L/R buffers into stereo codec words. | |
Variables | |
| constexpr float | sbl::dsp::types::SAMPLE_SCALE_F = 8388607.0f |
| constexpr float | sbl::dsp::types::SAMPLE_SCALE_INV_F = 1.0f / 8388607.0f |
| #define SBL_NAN_DETECTED | ( | ) | ((void)0) |
Count a NaN replaced by interleave_from_float()
Increments nan_detect_count() when SBL_PROFILING_ENABLED is defined, and compiles to nothing otherwise.
Definition at line 25 of file convert.hpp.