Cue Resource
A Cue (or Preset) Resource is a binary file with a format described by the following C structures and
constants:
//
---------------------------------------------------------------------------------------------------------------------
// Cue Resource (Public)
//
---------------------------------------------------------------------------------------------------------------------
// Constants
#define CUEID_MIN 0 // Minimum cueID corresponds to
Cue 0.00
#define CUEID_MAX 99999999 // Maximum cueID corresponds to
Cue 999,999.99
#define CUEID_MULTIPLIER 100 // CueID is 100x the natural cue
number
#define PRESETID_MAX 999 // presetIDs do not use decimal
numbers
#define CUE_OFFSET_STREAM_DATA 0x1000 // This is a fixed file position
for the start of streaming data blocks
// Resource Identifiers
#define CUE_RESTYPE 'C' // Resource type identifier
#define CUE_RESVERS '1' // Version 1 identifier
typedef struct Cue {
// ----------------------------------------------------------
uint8_t resType; // (0x00) Resource type (Cue = 'C')
uint8_t resVers; // (0x01) Resource version (Cue = '1')
uint8_t cueType; // (0x02) Cue Type
uint8_t cueFlags; // (0x03) Cue flags
FadeTimes fadeTimes; // (0x04) Fade times (up/down/delay)
float followTime; // (0x14) Follow time (0 = none)
int32_t linkCueID; // (0x18) Link Cue ID (-1 = none)
uint32_t reserved1; // (0x1C)
// ----------------------------------------------------------
uint32_t streamDuration; // (0x20) Total time of stream (clicks
[40Hz])
uint32_t streamTrimStart; // (0x24) Number of clicks into stream
to start playback
uint32_t streamTrimEnd; // (0x28) Number of clicks from end of
stream to end playback
uint8_t streamMode; // (0x2C) Auto-Follow/Loop/Hold/Release
uint8_t reserved2[3]; // (0x2D) -
Interactive Technologies, Inc.
CueServer 2 User's Manual - 18.5.18
Page 351 of 429