Changes

1,132 bytes added ,  10:04, 26 January 2013
Created page with "Category:File formats This document is about the format of CTR Streams (CSTM). The structure is almost exact to the CTR Wave Format (CWAV). === Overview === The structure ..."
[[Category:File formats]]
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 :

{| class="wikitable" border="1"
|-
! 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 Partition
* 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 ===

{| class="wikitable" border="1"
|-
! OFFSET !! SIZE !! DESCRIPTION
|-
| 0x000 || 4 || Magic (SEEK)
|-
| 0x004 || 4 || Length
|}
157

edits