31 template <
typename InputSource,
typename FloatingPo
intType,
typename ContextType>
41 static_assert(std::is_signed<InputSampleType>::value,
"Input sample type must be signed.");
42 static_assert(std::is_integral<InputSampleType>::value,
"Input sample type must be integral.");
45 static_assert(std::is_floating_point<SampleType>::value,
"Output sample type must be floating point.");
46 static constexpr
size_t SampleRate = InputSource::SampleRate;
66 return static_cast<SampleType>(
mInputSource[index]) / static_cast<SampleType>(BisectRange<InputSampleType>());
FloatingPointType SampleType
Definition: converttofloatingpointoperator.h:44
JSON (JavaScript Object Notation).
Definition: adsapi.h:16
#define assert(expr)
Definition: assertion.h:47
ConvertToFloatingPointOperator(ContextType &context)
Definition: converttofloatingpointoperator.h:35
static constexpr size_t SampleRate
Definition: converttofloatingpointoperator.h:46
Definition: dsputilities.h:60
SampleType operator[](size_t index) const
Definition: converttofloatingpointoperator.h:61
InputSource mInputSource
Definition: converttofloatingpointoperator.h:70
Definition: converttofloatingpointoperator.h:32
typename InputSource::SampleType InputSampleType
Definition: converttofloatingpointoperator.h:40
SampleRange GetSampleRange() const
Definition: converttofloatingpointoperator.h:55
InputSource & GetInputSource()
Definition: converttofloatingpointoperator.h:49