CSND Shared Memory: Difference between revisions

Line 62: Line 62:
| 2
| 2
| CmdID 0xE
| CmdID 0xE
|-
| 0x8
| 4
| See below.
|-
|-
| 0xC
| 0xC
Line 85: Line 89:


This initializes the [[CSND]] channel registers located at: 0x1EC03400 + (channel_index*0x20).
This initializes the [[CSND]] channel registers located at: 0x1EC03400 + (channel_index*0x20).
==Parameter word 0x8==
{| class="wikitable" border="1"
|-
!  Bit
!  Description
|-
| 5-0
| Channel index
|-
| 9-6
| ?
|-
| 11-10
| 2 = enable looping, 1 = disable looping
|-
| 13-12
| This sets the encoding, the names for the following encodings are from [https://github.com/3dshax/ctr/blob/master/ctrtool/cwav.h here]. 0 = PCM8 and DSPADPCM, 1 = PCM16, 2 = IMAADPCM.
|-
| 15-14
| ?
|-
| 31-16
| Sample rate clamped to the following range: 0x42-0xFFFF.
|}