utils/types.h file

Custom types.

Contents

Classes

struct GenericProgressInfo
Generic progress info.
struct EngineProcessTimeInfo
Common struct to pass around during processing to avoid repeating the data in function arguments.

Enums

enum AudioValueFormat { AUDIO_VALUE_AMPLITUDE, AUDIO_VALUE_DBFS, AUDIO_VALUE_FADER }

Typedefs

using midi_byte_t = uint8_t
MIDI byte.
using nframes_t = uint32_t
Frame count.
using sample_rate_t = uint32_t
Sample rate.
using midi_time_t = uint32_t
MIDI time in global frames.
using channels_t = unsigned int
Number of channels.
using sample_t = float
The sample type.
using bpm_t = float
The BPM type.
using signed_frame_t = int_fast64_t
Signed type for frame index.
using unsigned_frame_t = uint_fast64_t
Unsigned type for frame index.
using signed_ms_t = signed_frame_t
Signed millisecond index.
using signed_sec_t = signed_frame_t
Signed second index.
using GenericFloatGetter = float(*)(void*object)
Getter prototype for float values.
using GenericFloatSetter = void(*)(void*object, float val)
Setter prototype for float values.
using GenericStringGetter = const char*(*)(void*object)
Getter prototype for strings.
using GenericStringCopyGetter = void(*)(void*object, char*buf)
Getter prototype for strings to be saved in the given buffer.
using GenericStringSetter = void(*)(void*object, const char*val)
Setter prototype for float values.
using GenericCallback = void(*)(void*object)
Generic callback.
using GenericCmpFunc = int(*)(const void*a, const void*b)
Generic comparator.
using GenericPredicateFunc = bool(*)(const void*object, const void*user_data)
Predicate function prototype.
using GenericProgressInfo = struct GenericProgressInfo
Generic progress info.
using EngineProcessTimeInfo = struct EngineProcessTimeInfo
Common struct to pass around during processing to avoid repeating the data in function arguments.