|
Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Sample rate, sample formats, blocks and frames. More...
Sample rate, sample formats, blocks and frames.
Classes | |
| struct | Frame |
| struct | MonoBlock |
| Mono audio buffer with static allocation. More... | |
| struct | StereoBlock |
| Stereo audio buffer with static allocation. More... | |
Functions | |
| float | to_float (Sample s) |
| Sample | to_sample (float f) |
| void | to_float (const Sample *in, float *out, uint16_t frames) |
| void | to_sample (const float *in, Sample *out, uint16_t frames) |
| void | deinterleave_to_float (const int32_t *interleaved, float *left, float *right, uint16_t frames) |
| void | interleave_from_float (const float *left, const float *right, int32_t *interleaved, uint16_t frames) |
| constexpr int32_t | saturate_24 (int32_t x) |
| Clamp value to 24-bit audio range. | |
Variables | |
| constexpr float | SAMPLE_SCALE_F = 8388607.0f |
| constexpr float | SAMPLE_SCALE_INV_F = 1.0f / 8388607.0f |
| uint32_t | SAMPLE_RATE = 48000 |
| float | SAMPLE_RATE_F = 48000.0f |
| constexpr int32_t | SAMPLE_MAX_24 = 8388607 |
| constexpr int32_t | SAMPLE_MIN_24 = -8388607 |
|
inline |
Definition at line 34 of file convert.hpp.
References SAMPLE_SCALE_INV_F.
|
inline |
Definition at line 38 of file convert.hpp.
References SAMPLE_SCALE_F.
|
inline |
Definition at line 44 of file convert.hpp.
References SAMPLE_SCALE_INV_F.
|
inline |
Definition at line 50 of file convert.hpp.
References SAMPLE_SCALE_F.
|
inline |
Definition at line 61 of file convert.hpp.
References SAMPLE_SCALE_INV_F.
|
inline |
Definition at line 96 of file convert.hpp.
References SAMPLE_SCALE_F, and SBL_NAN_DETECTED.
Referenced by sbl::dsp::types::Frame< MaxFrames >::end().
|
inlineconstexpr |
Clamp value to 24-bit audio range.
Definition at line 24 of file fixed.hpp.
References SAMPLE_MAX_24, and SAMPLE_MIN_24.
|
inlineconstexpr |
Definition at line 29 of file convert.hpp.
Referenced by interleave_from_float(), to_sample(), and to_sample().
|
inlineconstexpr |
Definition at line 30 of file convert.hpp.
Referenced by deinterleave_to_float(), to_float(), and to_float().
|
inline |
Definition at line 17 of file fixed.hpp.
Referenced by sbl::dsp::pm::BowSet::BowSet(), sbl::dsp::modules::AlgoReverb< ScalePercent >::max_predelay_ms(), sbl::dsp::comp::Pan::Pan(), sbl::dsp::modules::Ladder::process(), sbl::dsp::widgets::Svf::process(), sbl::dsp::pm::Bow< Law >::reset(), sbl::dsp::pm::BowSet::reset(), sbl::dsp::pm::StringBase< Exciter, Load, MaxPeriod >::reset(), sbl::dsp::pm::StringLoop::reset(), sbl::dsp::pm::ThermalFriction::reset(), sbl::dsp::pm::MassSpringDamper::set_frequency(), sbl::dsp::pm::MassSpringDamper::set_resonance(), sbl::dsp::modules::TapeDelay::set_time_bpm(), and sbl::dsp::pm::StringBase< Exciter, Load, MaxPeriod >::update_period().
|
inlineconstexpr |
Definition at line 20 of file fixed.hpp.
Referenced by saturate_24().
|
inlineconstexpr |
Definition at line 21 of file fixed.hpp.
Referenced by saturate_24().