diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2020-12-06 20:42:45 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2020-12-06 20:42:45 +0100 |
commit | 181dd4972efc1c40e6a965438a65c27474a43107 (patch) | |
tree | 286aa3ff88bfb3e4efd5aee3595f87294c25b582 /src/cubase_project.rs | |
parent | c961d78f209005db4200fdb5567d43e01be05a6e (diff) | |
download | cbconv-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