VISR  0.11.1
Versatile Interactive Scene Renderer
visr::AudioSampleType Namespace Reference

Classes

struct  IdToType
 
struct  TypeToId
 

Enumerations

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

Functions

std::size_t typeSize (Id id)
 

Detailed Description

Namespace that encapsulates functionality about the different types of audio samples.

Enumeration Type Documentation

◆ Id

Enumeration for the different sample types. This list can be extended, but the type must be registered with the VISR_AUDIO_SAMPLE_TYPE_DEFINITION macro and in the typeSize() function in the implementation file.

Enumerator
floatId 

32-bit single-precision floating-point data

doubleId 

64-bit double-precision floating-point data

longDoubleId 

Extended-precision floating-point data

uint8Id 

Unsigned 8-bit integer sample types

int8Id 

Signed 8-bit integer sample types

uint16Id 

Unsigned 16-bit integer sample types

int16Id 

Signed 16-bit integer sample types

uint32Id 

Unsigned 32-bit integer sample types

int32Id 

Signed 32-bit integer sample types

complexFloatId 

Complex data containing 32-bit single-precision floating-point values

complexDoubleId 

Complex data containing 64-bit double-precision floating-point values

Function Documentation

◆ typeSize()

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

Runtime function to query the element size for a type id at runtime.