Line 51:
Line 51:
This sets the sample rate.
This sets the sample rate.
+
+
=Command 0xB=
+
{| class="wikitable" border="1"
+
|-
+
! Index Byte
+
! Size
+
! Description
+
|-
+
| 0x2
+
| 2
+
| CmdID 0xB
+
|-
+
| 0xC
+
| 2
+
| User processes set this to: [https://github.com/3dshax/ctr/blob/master/ctrtool/cwav.h cwav_imaadpcminfo.data]
+
|-
+
| 0x10
+
| 1
+
| User processes set this to: [https://github.com/3dshax/ctr/blob/master/ctrtool/cwav.h cwav_imaadpcminfo.tableindex]
+
|-
+
| 0x11
+
| 0xF
+
| Unused, all-zero.
+
|}
+
+
This command is used for initializing IMA-ADPCM state(when IMA-ADPCM encoding is used), prior to using command 0xE.
=Command 0xE=
=Command 0xE=