MPD
0.20.15
|
Convert from float to an integer sample format. More...
#include <FloatConvert.hxx>
Public Types | |
typedef SampleTraits< SampleFormat::FLOAT > | SrcTraits |
typedef Traits | DstTraits |
typedef SrcTraits::value_type | SV |
typedef SrcTraits::long_type | SL |
typedef DstTraits::value_type | DV |
Static Public Member Functions | |
static gcc_const DV | Convert (SV src) noexcept |
Static Public Attributes | |
static constexpr SV | factor = 1 << (DstTraits::BITS - 1) |
Convert from float to an integer sample format.
Definition at line 29 of file FloatConvert.hxx.
typedef Traits FloatToIntegerSampleConvert< F, Traits >::DstTraits |
Definition at line 31 of file FloatConvert.hxx.
typedef DstTraits::value_type FloatToIntegerSampleConvert< F, Traits >::DV |
Definition at line 35 of file FloatConvert.hxx.
typedef SrcTraits::long_type FloatToIntegerSampleConvert< F, Traits >::SL |
Definition at line 34 of file FloatConvert.hxx.
typedef SampleTraits<SampleFormat::FLOAT> FloatToIntegerSampleConvert< F, Traits >::SrcTraits |
Definition at line 30 of file FloatConvert.hxx.
typedef SrcTraits::value_type FloatToIntegerSampleConvert< F, Traits >::SV |
Definition at line 33 of file FloatConvert.hxx.
|
inlinestaticnoexcept |
Definition at line 40 of file FloatConvert.hxx.
|
static |
Definition at line 37 of file FloatConvert.hxx.