BCT (File Format): Difference between revisions

From Luma's Workshop
Jump to navigation Jump to search
(created page)
 
(added links)
Line 16: Line 16:
| 0x4
| 0x4
| UInt32 (0x4)
| UInt32 (0x4)
| Offset to parameter table
| Offset to [[BCT (File Format)#Parameter table|parameter table]]
|-
|-
| 0x8
| 0x8
| UInt32 (0x4)
| UInt32 (0x4)
| Offset to name table
| Offset to [[BCT (File Format)#Name table|name table]]
|-
|-
| 0xC
| 0xC
Line 66: Line 66:
| 0x0 + N * 4
| 0x0 + N * 4
| UInt32 (0x4)
| UInt32 (0x4)
| Offset to null-terminated Speaker Sound name
| Offset to null-terminated [[BCT (File Format)#List of Speaker Sounds|Speaker Sound name]]
|}
|}



Revision as of 19:08, 7 February 2026

BCT (Binary Controller Sound Table) files contain information about Wii Remote Speaker Sounds. They are linked to CSW files. Super Mario Galaxy and Super Mario Galaxy 2 each contain only one BCT file, located in AudioRes/SpkRes/SpkRes.arc/bin/spktable.bct.

File specifications

Header

size: 0x10

Offset Type Description
0x0 UInt32 (0x4) Amount of sounds
0x4 UInt32 (0x4) Offset to parameter table
0x8 UInt32 (0x4) Offset to name table
0xC UInt32 (0x4) Unknown. Gets written to at runtime by SpkTable::setResource

Parameter table

size: (N + 1) * 0x8

Offset Type Description
0x0 + N * 4 UInt16 (0x2) Index N of the sound
0x2 + N * 4 UInt8 (0x1)? Unknown.
0x3 + N * 4 UInt8 (0x1)? Unknown.
0x4 + N * 4 UInt16 (0x2) Unknown. Perhaps volume?
0x6 + N * 4 Padding (0x2)

Name table

size: (N + 1) * 0x4

Offset Type Description
0x0 + N * 4 UInt32 (0x4) Offset to null-terminated Speaker Sound name

The rest of the file is padded to the nearest 0x40.

List of Speaker Sounds

Coming before GTA 6.