Shared SHARC audio processing for OpenMixerProject
src/mixer: channel processing, monitoring and delay processing (originally DSP1)src/effects: effects rack, individual effects, RTA (originally DSP2)targets/x32/dsp1andtargets/x32/dsp2: CCES projects for the X32/M32 ADSP-21371
-
Install Analog Devices CrossCore Embedded Studio 2.12.1
-
Select
File->Open Projects from File System ..., open fromtargets/x32selectingdsp1anddsp2
-
Select Release and build both projects
-
Use
targets/x32/dsp1/Release/dsp1.ldrandtargets/x32/dsp2/Release/dsp2.ldr
Each target supplies its own defines.h and version.h through the include path.
The X32 profiles retain the existing graph, feature flags, channel indices, block
size, memory addresses, and SPI packet sizes. They are not universal defaults.
src/mixer/audio_io.h and src/effects/audio_io.h describe the block transport:
- The target owns the interleaved RX/TX words and SPORT DMA descriptors. Call
audioIoInit()beforeaudioInit()and before enabling audio interrupts. - Preserve buffer placement/alignment and the completed-block handoff. The mixer
selects the completed half via
bufferSwitch; the effects rack advancesaudioBufferOffsetby one block after processing. - FPGA-facing X32 words are signed PCM; inter-DSP words contain float bit patterns, not PCM. Preserve that distinction when connecting another FPGA.
- The mixer calls
audioIoPublishMeters()once per processed block. The X32 implementation retains the original SPI meter layout and tap selection. - The effects rack calls
audioIoBeginBlock()after deinterleaving. The X32 uses it to reset its S/PDIF side-channel cursors; a target without those side channels can implement an empty function.