Jump to content

Sound Bank: Difference between revisions

no edit summary
m (AcuteSyntax moved page EA Sound Container to Sound Data Table)
No edit summary
Line 2:
 
= Layout =
== SDT ==
 
{|class="wikitable"
|-
Line 11:
! Details
|-
| <tt>0x00 || <tt>0x04 || UInt32 || File magic (<ttcode>BNKl</ttcode>/<ttcode>0x424E4B6C</ttcode>) ||
|-
| <tt>0x080x04 || <tt>0x040x01 || UInt32 || Header size inVersion bytesnumber ||
|-
| <tt>0x06 || <tt>0x01 || UInt32 || Number of sounds in archive ||
|-
| <tt>0x08 || <tt>0x04 || UInt32 || Header size in bytes/start offset of<br>1st sound in archive ||
|-
| <tt>0x0C || <tt>0x04 || UInt32 || Archive size in bytes (minus header) ||
|-
| <tt>0x14 || <tt>0x04 || UInt32 || MetadataPT headers pointer table size in bytes || The pointer table itself also starts at this offset.
|-
|}
 
== PT Header (WIP) ==
SDT contains metadata headers, each <tt>0x20</tt> in length, for each sound in the archive. The metadata in question consists of a given sound's sample rate, compression, start offset, etc.
 
{|class="wikitable"
|-
! Offset
! Length
! Type
! Description
! Details
|-
| <tt>0x00 || <tt>0x04 || UInt32 || Header ID (<code>PT/0/0</code>/<code>0x50540A00</code>) ||
|-
| <tt>0x14</tt> + (pointer table size)0x18 || Variable<tt>0x04 || UInt32 || Audio metadatastart and offsetsoffset || Audio offsets are stored inUses big-endian byte order.
|}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.