30 template <
typename InputSource,
typename ContextType>
40 static_assert(std::is_signed<InputSampleType>::value,
"Input sample type must be signed.");
41 static_assert(std::is_integral<InputSampleType>::value,
"Input sample type must be integral.");
43 using SampleType = std::make_unsigned_t<InputSampleType>;
44 static constexpr
size_t SampleRate = InputSource::SampleRate;
64 return (static_cast<SampleType>(
mInputSource[index]) + static_cast<SampleType>(BisectRange<SampleType>()));
SampleRange GetSampleRange() const
Definition: converttounsignedoperator.h:53
ConvertToUnsignedOperator(ContextType &context)
Definition: converttounsignedoperator.h:34
InputSource mInputSource
Definition: converttounsignedoperator.h:68
JSON (JavaScript Object Notation).
Definition: adsapi.h:16
Definition: converttounsignedoperator.h:31
#define assert(expr)
Definition: assertion.h:47
Definition: dsputilities.h:60
SampleType operator[](size_t index) const
Definition: converttounsignedoperator.h:59
typename InputSource::SampleType InputSampleType
Definition: converttounsignedoperator.h:39
static constexpr size_t SampleRate
Definition: converttounsignedoperator.h:44
InputSource & GetInputSource()
Definition: converttounsignedoperator.h:47
std::make_unsigned_t< InputSampleType > SampleType
Definition: converttounsignedoperator.h:43