DSP Memory Region: Difference between revisions
No edit summary |
mNo edit summary |
||
Line 3: | Line 3: | ||
---- | ---- | ||
*Note that everything below will vary depending on the exact DSP firmware used and different variants have slightly different behaviours.* | |||
The DSP communicates with | The DSP communicates with the application through two shared memory areas 0x8000 bytes long each (at 0x1FF50000 and 0x1FF70000 respectively). The DSP alternates between the use of these two areas (much like a double-buffer). Each area has 15 structures within it. The location of these structures can be obtained by [[DSP:ReadPipe|reading channel 2 of the DSP pipe]]. A list of structures in the order the DSP addresses are read from the pipe follows: | ||
1. Frame count | |||
2. Input configurations | |||
3. Input status | |||
4. Input ADPCM coefficients | |||
5. DSP configuration | |||
6. DSP status | |||
7. Output samples | |||
8. Intermediate mix samples | |||
9. Unknown Coefficients | |||
10. DSP debug statistics | |||
11. Unknown Coefficients | |||
12. Unknown Coefficients | |||
13. Unknown Coefficients | |||
14. Unknown Coefficients | |||
15. Unknown Coefficients | |||
The DSP has 24 inputs, each of which are individually configurable. These 24 inputs each produce three sets of 4 audio channels (two left, two right). | |||
These four audio channels feed into three intermediate mixers. Two of these intermediate mixers are used for effects and aux. | |||
== Channel Config == | == Channel Config == | ||
Line 207: | Line 143: | ||
|} | |} | ||
=== | === Simple Filter Configuration === | ||
This is a standard single-pole filter. The fall-off is 6dB per octave as you would expect. | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| | | Offset | ||
| | | Type | ||
| Description | |||
|- | |- | ||
| | | 0 | ||
| | | s16 | ||
| b0 | |||
|- | |- | ||
| | | 0 | ||
| | | s16 | ||
| | | a1 | ||
|} | |} |