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
fixed.hpp File Reference

Fixed-point constants and audio sample types. More...

Detailed Description

Fixed-point constants and audio sample types.

Definition in file fixed.hpp.

#include <cstdint>

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.
 

Functions

constexpr int32_t sbl::dsp::types::saturate_24 (int32_t x)
 Clamp value to 24-bit audio range.
 

Variables

uint32_t sbl::dsp::types::SAMPLE_RATE = 48000
 
float sbl::dsp::types::SAMPLE_RATE_F = 48000.0f
 
constexpr int32_t sbl::dsp::types::SAMPLE_MAX_24 = 8388607
 
constexpr int32_t sbl::dsp::types::SAMPLE_MIN_24 = -8388607