Twitch SDK (Internal)
Public Types | Public Member Functions | Static Public Attributes | Private Attributes | List of all members
ttv::ConvertToUnsignedOperator< InputSource, ContextType > Class Template Reference

#include <converttounsignedoperator.h>

Public Types

using InputSampleType = typename InputSource::SampleType
 
using SampleType = std::make_unsigned_t< InputSampleType >
 

Public Member Functions

 ConvertToUnsignedOperator (ContextType &context)
 
InputSource & GetInputSource ()
 
SampleRange GetSampleRange () const
 
SampleType operator[] (size_t index) const
 

Static Public Attributes

static constexpr size_t SampleRate = InputSource::SampleRate
 

Private Attributes

InputSource mInputSource
 

Detailed Description

template<typename InputSource, typename ContextType>
class ttv::ConvertToUnsignedOperator< InputSource, ContextType >

Converts an audio source with an signed integral sample type to an unsigned integral sample type of the same width.

Template Parameters
InputSourceConforms to the AudioSource concept. Its SampleType must be integral and signed.

Operator Type Properties: Operator Type: Unary Data Integrity: Lossless SampleType[in] must be signed and integral. SampleType[out] is unsigned, integral, and the same width as SampleType[in]. SampleRate[in] == SampleRate[out] StartOffset[in] == StartOffset[out] Length[in] == Length[out]

Member Typedef Documentation

◆ InputSampleType

template<typename InputSource, typename ContextType>
using ttv::ConvertToUnsignedOperator< InputSource, ContextType >::InputSampleType = typename InputSource::SampleType

◆ SampleType

template<typename InputSource, typename ContextType>
using ttv::ConvertToUnsignedOperator< InputSource, ContextType >::SampleType = std::make_unsigned_t<InputSampleType>

Constructor & Destructor Documentation

◆ ConvertToUnsignedOperator()

template<typename InputSource, typename ContextType>
ttv::ConvertToUnsignedOperator< InputSource, ContextType >::ConvertToUnsignedOperator ( ContextType &  context)
inline

Member Function Documentation

◆ GetInputSource()

template<typename InputSource, typename ContextType>
InputSource& ttv::ConvertToUnsignedOperator< InputSource, ContextType >::GetInputSource ( )
inline

◆ GetSampleRange()

template<typename InputSource, typename ContextType>
SampleRange ttv::ConvertToUnsignedOperator< InputSource, ContextType >::GetSampleRange ( ) const
inline

◆ operator[]()

template<typename InputSource, typename ContextType>
SampleType ttv::ConvertToUnsignedOperator< InputSource, ContextType >::operator[] ( size_t  index) const
inline

Member Data Documentation

◆ mInputSource

template<typename InputSource, typename ContextType>
InputSource ttv::ConvertToUnsignedOperator< InputSource, ContextType >::mInputSource
private

◆ SampleRate

template<typename InputSource, typename ContextType>
constexpr size_t ttv::ConvertToUnsignedOperator< InputSource, ContextType >::SampleRate = InputSource::SampleRate
static

The documentation for this class was generated from the following file: