feat: plan composition phases and persist named arrangement markers
This commit is contained in:
parent
1b668068de
commit
64e5ab170f
19 changed files with 323 additions and 9 deletions
|
|
@ -7,7 +7,7 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define XTC_PROJECT_FORMAT_VERSION 15U
|
||||
#define XTC_PROJECT_FORMAT_VERSION 16U
|
||||
#define XTC_PROJECT_MAX_TRACKS 64U
|
||||
#define XTC_PROJECT_MAX_CLIPS 1024U
|
||||
#define XTC_PROJECT_NAME_BYTES 64U
|
||||
|
|
@ -15,6 +15,15 @@ extern "C" {
|
|||
#define XTC_TICKS_PER_QUARTER 960U
|
||||
#define XTC_PROJECT_MAX_TICK UINT64_C(38400000)
|
||||
typedef struct xtc_project xtc_project;
|
||||
#define XTC_PROJECT_MAX_MARKERS 128U
|
||||
/* Control-thread, sorted unique tick keys. Setting an existing tick renames it;
|
||||
* no allocations, playback implications or external resources. */
|
||||
typedef struct {uint64_t tick;char name[XTC_PROJECT_NAME_BYTES];} xtc_marker;
|
||||
xtc_result xtc_project_marker_count(const xtc_project *project,size_t *out);
|
||||
xtc_result xtc_project_get_marker(const xtc_project *project,size_t index,xtc_marker *out);
|
||||
xtc_result xtc_project_set_marker(xtc_project *project,uint64_t tick,const char *name);
|
||||
xtc_result xtc_project_remove_marker(xtc_project *project,uint64_t tick);
|
||||
|
||||
/* Control-thread edits, transactional validation; duplicate retains complete
|
||||
* source notes/trim/media references, allocates fresh IDs, copies no audio. */
|
||||
xtc_result xtc_project_duplicate_clip(xtc_project *project, uint64_t clip, uint64_t track, uint64_t start, uint64_t *out);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue