Line 58: |
Line 58: |
| |- | | |- |
| | 4 | | | 4 |
− | | 70 bytes | + | | f32[3][2][2] |
− | | TODO | + | | Input Gain (Each input has 12 channels) |
| + | |- |
| + | | 52 |
| + | | f32 |
| + | | Rate multiplier (1.0x == native DSP rate) |
| + | |- |
| + | | 56 |
| + | | u8 |
| + | | Interpolation mode |
| + | |- |
| + | | 57 |
| + | | u8 |
| + | | Polyphase filter select |
| + | |- |
| + | | 58 |
| + | | u16 |
| + | | bit[0]: Simple Filter enabled, bit[1]: Biquadratic Filter enabled |
| + | |- |
| + | | 60 |
| + | | SimpleFilter |
| + | | Simple Filter (One pole normalized recursive linear filter) |
| + | |- |
| + | | 64 |
| + | | BiquadFilter |
| + | | Biquadratic Filter (Two poles two zeros normalized recursive linear filter) |
| |- | | |- |
| | 74 | | | 74 |
Line 82: |
Line 106: |
| |- | | |- |
| | 164 | | | 164 |
− | | 8 | + | | u32 |
− | | TODO | + | | Play position |
| + | |- |
| + | | 168 |
| + | | 4 |
| + | | ? |
| |- | | |- |
| | 172 | | | 172 |
| | u32 | | | u32 |
− | | Physical address of current buffer | + | | Physical address of embedded buffer |
| |- | | |- |
| | 176 | | | 176 |
| | u32 | | | u32 |
− | | Number of samples in current buffer | + | | Number of samples in embedded buffer |
| |- | | |- |
| | 180 | | | 180 |
Line 98: |
Line 126: |
| |- | | |- |
| | 182 | | | 182 |
− | | u16 | + | | AdpcmData |
− | | ADPCM predictor/scale | + | | ADPCM data associated with embedded buffer |
− | |-
| |
− | | 184
| |
− | | s16
| |
− | | ADPCM y[n-1]
| |
− | |-
| |
− | | 186
| |
− | | s16
| |
− | | ADPCM y[n-2]
| |
| |- | | |- |
| | 188 | | | 188 |
| | u16 | | | u16 |
− | | bit[0]: ADPCM updated?; bit[1]: Is looping? | + | | bit[0]: ADPCM updated?; bit[1]: Is looping?r |
| |- | | |- |
| | 190 | | | 190 |
| | u16 | | | u16 |
− | | Buffer Id of this current buffer | + | | Buffer Id of embedded buffer |
| |} | | |} |
| | | |
Line 135: |
Line 155: |
| |- | | |- |
| | 8 | | | 8 |
− | | u16 | + | | AdpcmData |
− | | 4 bits: ADPCM Predictor, 4 bits: ADPCM Scale | + | | ADPCM data |
− | |-
| |
− | | 10
| |
− | | s16
| |
− | | ADPCM y[n-1]
| |
− | |-
| |
− | | 11
| |
− | | s16
| |
− | | ADPCM y[n-2]
| |
| |- | | |- |
| | 14 | | | 14 |
| | u8 | | | u8 |
− | | ADPCM dirty? | + | | ADPCM data dirty? |
| |- | | |- |
| | 15 | | | 15 |
Line 162: |
Line 174: |
| | - | | | - |
| |} | | |} |
| + | |
| + | === Adpcm Data === |
| + | |
| + | {| class="wikitable" |
| + | |- |
| + | | 0 |
| + | | u8 |
| + | | ADPCM predictor/scale |
| + | |- |
| + | | 1 |
| + | | u8 |
| + | | - |
| + | |- |
| + | | 2 |
| + | | s16 |
| + | | ADPCM y[n-1] |
| + | |- |
| + | | 4 |
| + | | s16 |
| + | | ADPCM y[n-2] |
| + | |} |
| + | |
| | | |
| === Simple Filter === | | === Simple Filter === |