VISR  0.11.8
Versatile Interactive Scene Renderer
audio_sample_type.hpp File Reference
#include "export_symbols.hpp"
#include <complex>
#include <cstdint>
#include <cstddef>

Go to the source code of this file.

Classes

struct  visr::AudioSampleType::IdToType< id >
 
struct  visr::AudioSampleType::TypeToId< typename >
 

Namespaces

 visr
 
 visr::AudioSampleType
 

Macros

#define VISR_AUDIO_SAMPLE_TYPE_DEFINITION(TypeParameter, IdParameter)
 

Enumerations

enum  visr::AudioSampleType::Id {
  visr::AudioSampleType::floatId = 0, visr::AudioSampleType::doubleId = 1, visr::AudioSampleType::longDoubleId = 2, visr::AudioSampleType::uint8Id = 3,
  visr::AudioSampleType::int8Id = 4, visr::AudioSampleType::uint16Id = 5, visr::AudioSampleType::int16Id = 6, visr::AudioSampleType::uint32Id = 7,
  visr::AudioSampleType::int32Id = 8, visr::AudioSampleType::complexFloatId = 9, visr::AudioSampleType::complexDoubleId = 10
}
 

Functions

std::size_t visr::AudioSampleType::typeSize (Id id)
 

Macro Definition Documentation

◆ VISR_AUDIO_SAMPLE_TYPE_DEFINITION

#define VISR_AUDIO_SAMPLE_TYPE_DEFINITION (   TypeParameter,
  IdParameter 
)
Value:
template<> struct TypeToId<TypeParameter> { static constexpr Id id = IdParameter; };\
template<> struct IdToType<IdParameter> { using Type = TypeParameter; };
Id
Definition: audio_sample_type.hpp:35

Macro to ease the registration of compile-time translation between sample types and the type ids

Parameters
TypeParameterThe data type, e.g., float
IdParameterThe sample type id, e.g., floatId