Phase 26: add common parameter targets, step automation and MIDI control mapping
This commit is contained in:
parent
7bff7b535d
commit
901a536f10
38 changed files with 740 additions and 67 deletions
|
|
@ -71,12 +71,12 @@ int main(void)
|
|||
assert(xtc_project_set_mix(p, a, NAN, 0, 0, 0) == XTC_ERR_INVALID_ARGUMENT);
|
||||
assert(xtc_project_set_mix(p, a, 1, 2, 0, 0) == XTC_ERR_INVALID_ARGUMENT);
|
||||
assert(xtc_project_set_mix(p, a, 1, 0, 2, 0) == XTC_ERR_INVALID_ARGUMENT);
|
||||
point = (xtc_automation_point){a, 0, XTC_AUTOMATION_GAIN, 0};
|
||||
point = (xtc_automation_point){a, 0, XTC_AUTOMATION_GAIN, 0,0};
|
||||
assert(xtc_project_set_automation(p, &point) == XTC_OK);
|
||||
point.tick = 20;
|
||||
point.value = 1;
|
||||
assert(xtc_project_set_automation(p, &point) == XTC_OK); /* sample 500 */
|
||||
point = (xtc_automation_point){a, 0, XTC_AUTOMATION_PAN, -1};
|
||||
point = (xtc_automation_point){a, 0, XTC_AUTOMATION_PAN, -1,0};
|
||||
assert(xtc_project_set_automation(p, &point) == XTC_OK);
|
||||
point.tick = 20;
|
||||
point.value = 1;
|
||||
|
|
@ -165,8 +165,8 @@ int main(void)
|
|||
{
|
||||
const char *bad[] = {"MIX 7fc00000 00000000 0 0", "MIX 40800001 00000000 0 0",
|
||||
"MIX 3f800000 40000000 0 0", "MIX 3f800000 00000000 2 0",
|
||||
"POINT 999 0 0 3f800000", "POINT 0 2 0 3f800000",
|
||||
"POINT 0 0 0 7f800000", "POINT 0 0 20 3f800000"};
|
||||
"POINT 999 0 0 3f800000 0", "POINT 0 2 0 3f800000 0",
|
||||
"POINT 0 0 0 7f800000 0", "POINT 0 0 20 3f800000 0", "POINT 0 0 0 3f800000 2"};
|
||||
for (i = 0; i < sizeof(bad) / sizeof(*bad); ++i) {
|
||||
char *start = strstr(bytes, i < 4 ? "MIX " : "POINT "), *end;
|
||||
assert(start);
|
||||
|
|
@ -197,7 +197,7 @@ int main(void)
|
|||
fputc('\n',legacy); continue;
|
||||
}
|
||||
if (strncmp(line, "MIX ", 4) && strncmp(line, "AUTOMATION ", 11) &&
|
||||
strncmp(line, "POINT ", 6) && strncmp(line, "AUDIO ", 6) && strncmp(line, "ROUTE ", 6))
|
||||
strncmp(line, "POINT ", 6) && strncmp(line, "AUDIO ", 6) && strncmp(line, "ROUTE ", 6) && strncmp(line,"CONTROL_MAPS ",13) && strncmp(line,"MAP ",4))
|
||||
assert(fputs(line, legacy) >= 0);
|
||||
}
|
||||
assert(fclose(f) == 0 && fclose(legacy) == 0);
|
||||
|
|
@ -237,7 +237,7 @@ int main(void)
|
|||
xtc_history_destroy(history);
|
||||
assert(xtc_project_remove_track(p, a) == XTC_OK &&
|
||||
xtc_project_automation_count(p, &count) == XTC_OK && count == 0);
|
||||
point = (xtc_automation_point){b, 0, XTC_AUTOMATION_GAIN, 1};
|
||||
point = (xtc_automation_point){b, 0, XTC_AUTOMATION_GAIN, 1,0};
|
||||
for (i = 0; i < XTC_MAX_AUTOMATION_POINTS; ++i) {
|
||||
point.tick = i;
|
||||
assert(xtc_project_set_automation(p, &point) == XTC_OK);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue