Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
convert.hpp File Reference

DMA boundary conversion utilities. More...

Detailed Description

DMA boundary conversion utilities.

Definition in file convert.hpp.

#include <cstdint>
#include <sbl/hw/hal/audio/types.hpp>

Go to the source code of this file.

Namespaces

namespace  sbl
 Root namespace for all Sound Byte Libs code.
 
namespace  sbl::dsp
 
namespace  sbl::dsp::types
 Sample rate, sample formats, blocks and frames.
 

Macros

#define SBL_NAN_DETECTED()   ((void)0)
 

Functions

float sbl::dsp::types::to_float (Sample s)
 
Sample sbl::dsp::types::to_sample (float f)
 
void sbl::dsp::types::to_float (const Sample *in, float *out, uint16_t frames)
 
void sbl::dsp::types::to_sample (const float *in, Sample *out, uint16_t frames)
 
void sbl::dsp::types::deinterleave_to_float (const int32_t *interleaved, float *left, float *right, uint16_t frames)
 
void sbl::dsp::types::interleave_from_float (const float *left, const float *right, int32_t *interleaved, uint16_t frames)
 

Variables

constexpr float sbl::dsp::types::SAMPLE_SCALE_F = 8388607.0f
 
constexpr float sbl::dsp::types::SAMPLE_SCALE_INV_F = 1.0f / 8388607.0f
 

Macro Definition Documentation

◆ SBL_NAN_DETECTED

#define SBL_NAN_DETECTED ( )    ((void)0)

Definition at line 21 of file convert.hpp.