C++ API Reference RNBO: RNBO::DataType Struct Reference

RNBO: RNBO::DataType Struct Reference

A RNBO external data reference type. More...

#include <RNBO_DataRef.h>

Inheritance diagram for RNBO::DataType:
data_type RNBO::Float32AudioBuffer RNBO::Float64AudioBuffer RNBO::UntypedDataBuffer

Public Types

enum  Type {
  Untyped, Float32AudioBuffer, Float64AudioBuffer, SampleAudioBuffer,
  TypedArray
}
 

Public Member Functions

bool operator== (const DataType &rhs) const
 
bool operator!= (const DataType &rhs) const
 
bool matches (const DataType &rhs) const
 

Data Fields

enum RNBO::DataType::Type type = Untyped
 
union {
   UntypedBufferInfo   untypedBufferInfo
 
   AudioBufferInfo   audioBufferInfo
 
}; 
 

Detailed Description

A RNBO external data reference type.

There are two categories of data references - audio buffers and memory buffers. Audio buffers are specialized for handling audio and contain information about channel count and samplerate, for example. Memory buffers are intended for all other data storage and transfer uses.

Member Enumeration Documentation

◆ Type

Valid types of external data refs

Enumerator
Untyped 

generic, untyped memory buffer

Float32AudioBuffer 

32-bit float audio buffer

Float64AudioBuffer 

64-bit float audio buffer

SampleAudioBuffer 

64 or 32-bit float audio buffer

TypedArray 

typed memory buffer


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