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
sbl::dsp::host Namespace Reference

Host-only file I/O. More...

Detailed Description

Host-only file I/O.

Functions

bool write_wav (const char *path, const float *data, int samples, int sample_rate, int channels)
 Interleaved float samples to a 24-bit PCM WAV, clamped to ±1.
 
bool write_float_bin (const char *path, const float *data, int samples)
 Raw float32, native endianness: what analyst measure reads.
 

Function Documentation

◆ write_wav()

bool sbl::dsp::host::write_wav ( const char *  path,
const float *  data,
int  samples,
int  sample_rate,
int  channels 
)
inline

Interleaved float samples to a 24-bit PCM WAV, clamped to ±1.

Definition at line 16 of file render.hpp.

◆ write_float_bin()

bool sbl::dsp::host::write_float_bin ( const char *  path,
const float *  data,
int  samples 
)
inline

Raw float32, native endianness: what analyst measure reads.

Definition at line 67 of file render.hpp.