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

#include <converttointegraltypeoperator.h>

Public Types

using InputSampleType = typename InputSource::SampleType
 
using SampleType = IntegralType
 

Public Member Functions

 ConvertToIntegralTypeOperator (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 IntegralType, typename ContextType>
class ttv::ConvertToIntegralTypeOperator< InputSource, IntegralType, ContextType >

Converts an audio source with a floating-point sample type to an integral sample type.

Template Parameters
InputSourceConforms to the AudioSource concept. Its SampleType must be floating-point.
IntegralTypeThe sample type to convert to. Must be integral and signed.
ContextTypeA shared audio context type.

Operator Type Properties: Operator Type: Unary Data Integrity: Lossy SampleType[in] must be floating point. SampleType[out] must be signed and integral. SampleRate[in] == SampleRate[out] StartOffset[in] == StartOffset[out] Length[in] == Length[out]

Member Typedef Documentation

◆ InputSampleType

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

◆ SampleType

template<typename InputSource , typename IntegralType , typename ContextType >
using ttv::ConvertToIntegralTypeOperator< InputSource, IntegralType, ContextType >::SampleType = IntegralType

Constructor & Destructor Documentation

◆ ConvertToIntegralTypeOperator()

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

Member Function Documentation

◆ GetInputSource()

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

◆ GetSampleRange()

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

◆ operator[]()

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

Member Data Documentation

◆ mInputSource

template<typename InputSource , typename IntegralType , typename ContextType >
InputSource ttv::ConvertToIntegralTypeOperator< InputSource, IntegralType, ContextType >::mInputSource
private

◆ SampleRate

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

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