Phase 24: add mix buses, coherent peak meters and master clipping indicators
This commit is contained in:
parent
ba5c2503a7
commit
2fd7724065
32 changed files with 632 additions and 61 deletions
|
|
@ -311,6 +311,14 @@ static xtc_result read_project(reader *input, xtc_project *project, const char *
|
|||
return XTC_ERR_FORMAT;
|
||||
project->tracks[i].solo = (int)value;
|
||||
}
|
||||
project->tracks[i].bus_id = UINT64_MAX;
|
||||
if (format_version >= 9U) {
|
||||
READ("ROUTE", 3U);
|
||||
NUM(1U, value);
|
||||
if (value > 1) return XTC_ERR_FORMAT;
|
||||
project->tracks[i].is_bus = (int)value;
|
||||
NUM(2U, project->tracks[i].bus_id);
|
||||
}
|
||||
}
|
||||
READ("CLIPS", 2U);
|
||||
NUM(1U, value);
|
||||
|
|
@ -496,7 +504,7 @@ static xtc_result write_project(FILE *file, const xtc_project *project, const ch
|
|||
memcpy(&gain, &t->gain, sizeof(gain));
|
||||
memcpy(&pan, &t->pan, sizeof(pan));
|
||||
if (fprintf(file, "TRACK %" PRIu64 " ", t->id) < 0 || !write_name(file, t->name) ||
|
||||
fprintf(file, "MIX %08" PRIx32 " %08" PRIx32 " %d %d\n", gain, pan, t->mute, t->solo) < 0)
|
||||
fprintf(file, "MIX %08" PRIx32 " %08" PRIx32 " %d %d\nROUTE %d %" PRIu64 "\n", gain, pan, t->mute, t->solo, t->is_bus, t->bus_id) < 0)
|
||||
return XTC_ERR_IO;
|
||||
}
|
||||
if (fprintf(file, "CLIPS %zu\n", project->clip_count) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue