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

#include <converttosignedoperator.h>

Public Types

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

Public Member Functions

 ConvertToSignedOperator (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::ConvertToSignedOperator< InputSource, ContextType >

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

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

Operator Type Properties: Operator Type: Unary Data Integrity: Lossless SampleType[in] must be unsigned and integral. SampleType[out] is signed, 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::ConvertToSignedOperator< InputSource, ContextType >::InputSampleType = typename InputSource::SampleType

◆ SampleType

template<typename InputSource, typename ContextType>
using ttv::ConvertToSignedOperator< InputSource, ContextType >::SampleType = std::make_signed_t<InputSampleType>

Constructor & Destructor Documentation

◆ ConvertToSignedOperator()

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

Member Function Documentation

◆ GetInputSource()

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

◆ GetSampleRange()

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

◆ operator[]()

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

Member Data Documentation

◆ mInputSource

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

◆ SampleRate

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

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