aboutsummaryrefslogtreecommitdiffstats
path: root/src/cubase_project.rs
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-12-06 20:42:45 +0100
committerHarald Eilertsen <haraldei@anduin.net>2020-12-06 20:42:45 +0100
commit181dd4972efc1c40e6a965438a65c27474a43107 (patch)
tree286aa3ff88bfb3e4efd5aee3595f87294c25b582 /src/cubase_project.rs
parentc961d78f209005db4200fdb5567d43e01be05a6e (diff)
downloadcbconv-181dd4972efc1c40e6a965438a65c27474a43107.tar.gz
cbconv-181dd4972efc1c40e6a965438a65c27474a43107.tar.bz2
cbconv-181dd4972efc1c40e6a965438a65c27474a43107.zip
Redo the whole thing again.
Parsing the chunks separately was not a good idea. The file layout seems to be alternating ROOT and ARCH chunks, where the ROOT chunk describes what kind of data to expect in the following ARCH chunk. That is: +------+------+------+ | RIFF | SIZE | NUND | +------+------+------+------+ \ | ROOT | SIZE | NAME | TYPE | | +------+------+------+------+ > One unit | ARCH | SIZE | DATA.... | | +------+------+-------------+ / : : +------+------+------+------+ \ | ROOT | SIZE | NAME | TYPE | | +------+------+------+------+ > Last unit | ARCH | SIZE | DATA.... | | +------+------+-------------+ / EOF The NAME and TYPE are counted (and possibly zero terminated) strings describing the name of the following chunk (e.g. "Version"), and data type (e.g. "PAppVersion") respectively. The order of the chunk pairs does not seem significant, but the pairs are always a ROOT chunk followed by an ARCH chunk.
Diffstat (limited to 'src/cubase_project.rs')
0 files changed, 0 insertions, 0 deletions