MPD  0.20.15
Public Types | Static Public Attributes
SampleTraits< SampleFormat::S32 > Struct Template Reference

#include <Traits.hxx>

Public Types

typedef int32_t value_type
 
typedef value_typepointer_type
 
typedef const value_typeconst_pointer_type
 
typedef int_least64_t sum_type
 
typedef int_least64_t long_type
 

Static Public Attributes

static constexpr size_t SAMPLE_SIZE = sizeof(value_type)
 
static constexpr unsigned BITS = sizeof(value_type) * 8
 
static constexpr value_type MIN = -(sum_type(1) << (BITS - 1))
 
static constexpr value_type MAX = (sum_type(1) << (BITS - 1)) - 1
 
static constexpr value_type SILENCE = 0
 

Detailed Description

template<>
struct SampleTraits< SampleFormat::S32 >

Definition at line 113 of file Traits.hxx.

Member Typedef Documentation

◆ const_pointer_type

Definition at line 116 of file Traits.hxx.

◆ long_type

typedef int_least64_t SampleTraits< SampleFormat::S32 >::long_type

Definition at line 119 of file Traits.hxx.

◆ pointer_type

Definition at line 115 of file Traits.hxx.

◆ sum_type

typedef int_least64_t SampleTraits< SampleFormat::S32 >::sum_type

Definition at line 118 of file Traits.hxx.

◆ value_type

Definition at line 114 of file Traits.hxx.

Field Documentation

◆ BITS

constexpr unsigned SampleTraits< SampleFormat::S32 >::BITS = sizeof(value_type) * 8
static

Definition at line 122 of file Traits.hxx.

◆ MAX

constexpr value_type SampleTraits< SampleFormat::S32 >::MAX = (sum_type(1) << (BITS - 1)) - 1
static

Definition at line 125 of file Traits.hxx.

◆ MIN

constexpr value_type SampleTraits< SampleFormat::S32 >::MIN = -(sum_type(1) << (BITS - 1))
static

Definition at line 124 of file Traits.hxx.

◆ SAMPLE_SIZE

constexpr size_t SampleTraits< SampleFormat::S32 >::SAMPLE_SIZE = sizeof(value_type)
static

Definition at line 121 of file Traits.hxx.

◆ SILENCE

constexpr value_type SampleTraits< SampleFormat::S32 >::SILENCE = 0
static

Definition at line 126 of file Traits.hxx.


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