libpsynth 0.2.1
Public Types | Public Member Functions
psynth::sound::sample_converter< SrcSampleV, DstSampleV > Struct Template Reference

A unary function object converting between sample types. More...

#include <sample_algorithm.hpp>

Inheritance diagram for psynth::sound::sample_converter< SrcSampleV, DstSampleV >:
Inheritance graph
[legend]
Collaboration diagram for psynth::sound::sample_converter< SrcSampleV, DstSampleV >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef
detail::sample_convert_from_unsigned
< DstSampleV > 
from_unsigned
typedef
detail::sample_converter_impl
< SrcSampleV, DstSampleV,
std::is_same< typename
from_unsigned::argument_type,
DstSampleV >::value > 
converter_impl

Public Member Functions

PSYNTH_FORCEINLINE DstSampleV operator() (const SrcSampleV &src) const

Detailed Description

template<typename SrcSampleV, typename DstSampleV>
struct psynth::sound::sample_converter< SrcSampleV, DstSampleV >

A unary function object converting between sample types.


Member Typedef Documentation

template<typename SrcSampleV , typename DstSampleV >
typedef detail::sample_converter_impl< SrcSampleV, DstSampleV, std::is_same<typename from_unsigned::argument_type, DstSampleV>::value> psynth::sound::sample_converter< SrcSampleV, DstSampleV >::converter_impl
template<typename SrcSampleV , typename DstSampleV >
typedef detail::sample_convert_from_unsigned<DstSampleV> psynth::sound::sample_converter< SrcSampleV, DstSampleV >::from_unsigned

Member Function Documentation

template<typename SrcSampleV , typename DstSampleV >
PSYNTH_FORCEINLINE DstSampleV psynth::sound::sample_converter< SrcSampleV, DstSampleV >::operator() ( const SrcSampleV &  src) const [inline]

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