Firelight Technologies FMOD Studio API
DSP Effect Per Speaker Example
This example shows how to manipulate a DSP network and as an example, creates 2 DSP effects, splitting a single sound into 2 audio paths, which it then filters seperately.
To only have each audio path come out of one speaker each, DSPConnection::setMixMatrix is used just before the 2 branches merge back together again.
For more speakers:
- Use System::setSoftwareFormat
- Create more effects, currently 2 for stereo (lowpass and highpass), create one per speaker.
- Under the 'Now connect the 2 effects to channeldsp head.' section, connect the extra effects by duplicating the code more times.
- Filter each effect to each speaker by calling DSPConnection::setMixMatrix.
Expand the existing code by extending the matrices from 2 in and 2 out, to the number of speakers you require.
Location
The example is located at api/lowlevel/examples/dsp_effect_per_speaker.cpp.