BCSTM

From 3dbrew
Revision as of 10:05, 26 January 2013 by Xcution (talk | contribs)
Jump to navigation Jump to search

This document is about the format of CTR Streams (CSTM).

The structure is almost exact to the CTR Wave Format (CWAV).

Overview

The structure of the CSTM is almost exactly the CWAV, except a few differences. The formats can be easily converted between eachother.

These files are either found in rom:\sound\stream\ or they can be inside of a CSAR.

Format

The structure is very similar to the CWAV, except these notable differences :

OFFSET SIZE DESCRIPTION
0x000 4 MAGIC "CSTM"

Additionally it introduces a new partition called SEEK which comes right before DATA, so a CSTM would be ordered like this:

  • CSTM Header
  • INFO Partition
  • SEEK Partition
  • DATA Partition

By default this means that 0x24-0x2B in the CSTM Partition is the SEEK position and length respectively, and DATA position and length follows it. (in a CWAV 0x24-0x2B is usually the DATA position and length)

SEEK

OFFSET SIZE DESCRIPTION
0x000 4 Magic (SEEK)
0x004 4 Length