DSP Memory Region: Difference between revisions
No edit summary |
No edit summary |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
'' | ''Note that everything below may vary depending on the exact DSP firmware used and different variants have slightly different behaviours.'' | ||
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: | 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: | ||
Line 340: | Line 336: | ||
== DSP status == | == DSP status == | ||
Read only. | Read only. A 32 byte long structure. | ||
{| class="wikitable" | |||
|- | |||
| Offset | |||
| Type | |||
| Description | |||
|- | |||
| 0 | |||
| u16 | |||
| ? | |||
|- | |||
| 2 | |||
| u16 | |||
| Number of dropped frames | |||
|- | |||
| 4 | |||
| 28 bytes | |||
| ? | |||
|} | |||
== Output samples == | == Output samples == | ||
Line 360: | Line 375: | ||
| Right-channel Samples | | Right-channel Samples | ||
|} | |} | ||
This structure has separate arrays for the left and right channels. | |||
== Intermediate mix samples == | == Intermediate mix samples == | ||
Line 365: | Line 382: | ||
Read/Write. | Read/Write. | ||
PCM32. Also serves an aux function, allowing the ARM11 to apply custom effects to audio. Internal format of the DSP firmware is | PCM32. Also serves an aux function, allowing the ARM11 to apply custom effects to audio. Internal format of the DSP firmware is quadraphonic audio. | ||
This structure is 5120 bytes long. | This structure is 5120 bytes long. | ||
Line 377: | Line 394: | ||
| 0 | | 0 | ||
| IntermediateSample[160] | | IntermediateSample[160] | ||
| Samples | | Samples | ||
|} | |} | ||
In contrast to the final output samples, this structure has the left/right channels interleaved. | |||
=== Intermediate sample === | === Intermediate sample === | ||
Line 412: | Line 429: | ||
A precomputed response curve lookup table for the compressor. | A precomputed response curve lookup table for the compressor. | ||
[[Category:DSP]] |