AudibleT 0.0.1
A real-time A/B/X audio testing tool for subjective assessment of various audio parameters, compatible for general purpose computer as well as embedded systems.
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
AudioSampleConverter< T > Struct Template Reference

Static Public Member Functions

static T signedByteToSample (int8_t sample)
 
static int8_t sampleToSignedByte (T sample)
 
static T unsignedByteToSample (uint8_t sample)
 
static uint8_t sampleToUnsignedByte (T sample)
 
static T sixteenBitIntToSample (int16_t sample)
 
static int16_t sampleToSixteenBitInt (T sample)
 
static T twentyFourBitIntToSample (int32_t sample)
 
static int32_t sampleToTwentyFourBitInt (T sample)
 
static T thirtyTwoBitIntToSample (int32_t sample)
 
static int32_t sampleToThirtyTwoBitInt (T sample)
 
static T clamp (T v1, T minValue, T maxValue)
 

Member Function Documentation

◆ clamp()

template<class T >
T AudioSampleConverter< T >::clamp ( v1,
minValue,
maxValue 
)
static

Helper clamp function to enforce ranges

◆ sampleToSignedByte()

template<class T >
int8_t AudioSampleConverter< T >::sampleToSignedByte ( sample)
static

Convert an audio sample to an signed 8-bit representation

◆ sampleToSixteenBitInt()

template<class T >
int16_t AudioSampleConverter< T >::sampleToSixteenBitInt ( sample)
static

Convert a an audio sample to a 16-bit integer

◆ sampleToThirtyTwoBitInt()

template<class T >
int32_t AudioSampleConverter< T >::sampleToThirtyTwoBitInt ( sample)
static

Convert a an audio sample to a 32-bit signed integer

◆ sampleToTwentyFourBitInt()

template<class T >
int32_t AudioSampleConverter< T >::sampleToTwentyFourBitInt ( sample)
static

Convert a an audio sample to a 24-bit value (in a 32-bit integer)

◆ sampleToUnsignedByte()

template<class T >
uint8_t AudioSampleConverter< T >::sampleToUnsignedByte ( sample)
static

Convert an audio sample to an unsigned 8-bit representation

◆ signedByteToSample()

template<class T >
T AudioSampleConverter< T >::signedByteToSample ( int8_t  sample)
static

Convert a signed 8-bit integer to an audio sample

◆ sixteenBitIntToSample()

template<class T >
T AudioSampleConverter< T >::sixteenBitIntToSample ( int16_t  sample)
static

Convert a 16-bit integer to an audio sample

◆ thirtyTwoBitIntToSample()

template<class T >
T AudioSampleConverter< T >::thirtyTwoBitIntToSample ( int32_t  sample)
static

Convert a 32-bit signed integer to an audio sample

◆ twentyFourBitIntToSample()

template<class T >
T AudioSampleConverter< T >::twentyFourBitIntToSample ( int32_t  sample)
static

Convert a 24-bit value (int a 32-bit int) to an audio sample

◆ unsignedByteToSample()

template<class T >
T AudioSampleConverter< T >::unsignedByteToSample ( uint8_t  sample)
static

Convert an unsigned 8-bit integer to an audio sample


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