This function adds a pre-created DSP unit or effect to the head of the Channel DSP chain.
FMOD::DSP * dsp,
FMOD::DSPConnection ** connection
A pointer to a pre-created DSP unit to be inserted at the head of the Channel DSP chain.
If the function succeeds then the return value is FMOD_OK.
If the function fails then the return value will be one of the values defined in the FMOD_RESULT enumeration.
This function is a wrapper function to insert a DSP unit at the top of the Channel DSP chain. It disconnects the head unit from its input, then inserts the unit at the head and reconnects the previously disconnected input back as as an input to the new unit.
Win32, Win64, Linux, Linux64, Macintosh, Xbox, Xbox360, PlayStation 2, GameCube, PlayStation Portable, PlayStation 3, Wii, Solaris
Version 4.14.00 Built on Apr 4, 2008
So, What am I do do with the new parameter FMOD::DSPConnection
I’m in dev-cpp, compiling with the C interface… I have not planed to redisign my code arround this new undocumented parameter.
The original code did not need it. Can I pass NULL?
- icuurd12b42 asked 11 years ago
I noted the same here:
What I am currently doing is assuming it’s the same as the FMOD_DSP_GetOuput()’s new argument which is somewhat documented:
The connection between the 2 units. Optional. Specify 0 or NULL to ignore.
I assume the inclusion of the new dspconnection API is the source of the many changes in the DSP section.
EDIT: After a bit of experimenting and reading the changelog more clearly, it appears that the following functions now also return a DSPconnections pointer which can be used in the dspconnections API. In all cases, this is optional (0 or Null).
[quote:1b6xp36y]System::addDSP, Channel::addDSP, ChannelGroup::addDSP, DSP::addInput, DSP::getInput, DSP::getOutput[/quote:1b6xp36y]
- Shaltif answered 11 years ago
Please login first to submit.