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

#include <increasebitdepthoperator.h>

Public Types

using InputSampleType = typename InputSource::SampleType
 
using SampleType = OutputSampleType
 

Public Member Functions

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

Converts an audio source to one with a greater bit depth.

Template Parameters
InputSourceConforms to the AudioSource concept. Its SampleType must be integral.
OutputSampleTypeThe sample type to convert to. Must be integral, larger than the input type, and have the same signedness as the input type.

Operator Type Properties: Operator Type: Unary Data Integrity: Lossless SampleType[in] must be integral. SampleType[out] must be integral, larger than the input sample type, and have the same signedness as the input type. SampleRate[in] == SampleRate[out] StartOffset[in] == StartOffset[out] Length[in] == Length[out]

Member Typedef Documentation

◆ InputSampleType

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

◆ SampleType

template<typename InputSource, typename OutputSampleType, typename ContextType>
using ttv::IncreaseBitDepthOperator< InputSource, OutputSampleType, ContextType >::SampleType = OutputSampleType

Constructor & Destructor Documentation

◆ IncreaseBitDepthOperator()

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

Member Function Documentation

◆ GetInputSource()

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

◆ GetSampleRange()

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

◆ operator[]()

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

Member Data Documentation

◆ mInputSource

template<typename InputSource, typename OutputSampleType, typename ContextType>
InputSource ttv::IncreaseBitDepthOperator< InputSource, OutputSampleType, ContextType >::mInputSource
private

◆ SampleRate

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

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