VCV Rack API v2
Loading...
Searching...
No Matches
convert.hpp File Reference
#include <type_traits>
#include <dsp/common.hpp>
Include dependency graph for convert.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  rack
 Root namespace for the Rack API.
 
namespace  rack::dsp
 Digital signal processing routines and classes.
 

Functions

struct rack::dsp::__attribute__ ((packed, aligned(1), gcc_struct)) Int24
 24-bit integer, using int32_t for conversions.
 
template<typename To , typename From >
To rack::dsp::convert (From x)=delete
 Converts between normalized types.
 
template<>
float rack::dsp::convert (float x)
 Trivial conversions.
 
template<>
float rack::dsp::convert (int8_t x)
 Integer to float.
 
template<>
float rack::dsp::convert (int16_t x)
 
template<>
float rack::dsp::convert (Int24 x)
 
template<>
float rack::dsp::convert (int32_t x)
 
template<>
float rack::dsp::convert (int64_t x)
 
template<>
int8_t rack::dsp::convert (float x)
 Float to integer.
 
template<>
int16_t rack::dsp::convert (float x)
 
template<>
Int24 rack::dsp::convert (float x)
 
template<>
int32_t rack::dsp::convert (float x)
 
template<>
int64_t rack::dsp::convert (float x)
 
template<typename To , typename From >
void rack::dsp::convert (const From *in, To *out, size_t len)
 Buffer conversion.