I know nothing about Pro Tools, but if you have C++ descriptions of the structure of the files, you should be able to build them using perl's pack() builtin, unless this is a time-sensitive operation, in which case, perl may not be the right language.