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

#include <changefloatingpointdepthoperator.h>

Public Types

using InputSampleType = typename InputSource::SampleType
 
using SampleType = FloatingPointType
 

Public Member Functions

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

Converts an audio source with one floating-point type of one depth to another.

Template Parameters
InputSourceConforms to the AudioSource concept. Its SampleType must be floating-point.
FloatingPointTypeThe sample type to convert to. Must be floating-point.

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

Member Typedef Documentation

◆ InputSampleType

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

◆ SampleType

template<typename InputSource, typename FloatingPointType, typename ContextType>
using ttv::ChangeFloatingPointDepthOperator< InputSource, FloatingPointType, ContextType >::SampleType = FloatingPointType

Constructor & Destructor Documentation

◆ ChangeFloatingPointDepthOperator()

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

Member Function Documentation

◆ GetInputSource()

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

◆ GetSampleRange()

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

◆ operator[]()

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

Member Data Documentation

◆ mInputSource

template<typename InputSource, typename FloatingPointType, typename ContextType>
InputSource ttv::ChangeFloatingPointDepthOperator< InputSource, FloatingPointType, ContextType >::mInputSource
private

◆ SampleRate

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

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