feat(project): persist bounded per-track effect chains (phase 81)
This commit is contained in:
parent
e9d783146f
commit
7489f86351
15 changed files with 159 additions and 12 deletions
|
|
@ -31,6 +31,14 @@ typedef struct {
|
|||
unsigned int tempo, point_count; /* milli-BPM, 20000..300000 */
|
||||
xtc_plugin_point points[XTC_PLUGIN_POINTS];
|
||||
} xtc_plugin_spec;
|
||||
#define XTC_TRACK_INSERTS 8U
|
||||
typedef struct { xtc_plugin_spec plugin; unsigned int enabled; float wet; } xtc_track_insert;
|
||||
typedef struct { size_t count; float output_gain; xtc_track_insert slots[XTC_TRACK_INSERTS]; } xtc_track_chain;
|
||||
/* Metadata only; control thread. Empty chain has unity output. No module is
|
||||
* opened here. Nonempty chains are mono effects on non-bus tracks. */
|
||||
xtc_result xtc_track_chain_validate(const xtc_track_chain *chain);
|
||||
xtc_result xtc_project_get_chain(const xtc_project *project,uint64_t track,xtc_track_chain *out);
|
||||
xtc_result xtc_project_set_chain(xtc_project *project,uint64_t track,const xtc_track_chain *chain);
|
||||
/* Copied discovery metadata, never descriptor/module pointers. Modern adapters
|
||||
* currently expose the name only (zero controls). LADSPA provides
|
||||
* no standardized units; unit is empty. Flags describe input control hints. */
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define XTC_PROJECT_FORMAT_VERSION 16U
|
||||
#define XTC_PROJECT_FORMAT_VERSION 17U
|
||||
#define XTC_PROJECT_MAX_TRACKS 64U
|
||||
#define XTC_PROJECT_MAX_CLIPS 1024U
|
||||
#define XTC_PROJECT_NAME_BYTES 64U
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue