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

#include <decreasebitdepthoperator.h>

Public Types

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

Public Member Functions

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

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

Template Parameters
InputSourceConforms to the AudioSource concept. Its SampleType must be integral and signed.
OutputSampleTypeThe sample type to convert to. Must be integral, signed, and smaller than the input type.

Operator Type Properties: Operator Type: Unary Data Integrity: Lossy SampleType[in] must be signed and integral. SampleType[out] must be signed and integral, and smaller than the input sample 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::DecreaseBitDepthOperator< InputSource, OutputSampleType, ContextType >::InputSampleType = typename InputSource::SampleType

◆ SampleType

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

Constructor & Destructor Documentation

◆ DecreaseBitDepthOperator()

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

Member Function Documentation

◆ GetInputSource()

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

◆ GetSampleRange()

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

◆ operator[]()

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

Member Data Documentation

◆ mInputSource

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

◆ SampleRate

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

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