0
0

[quote:20pddcyn]
Channel::addDSP
This function adds a pre-created DSP unit or effect to the head of the Channel DSP chain.

Syntax

FMOD_RESULT Channel::addDSP(
FMOD::DSP * dsp,
FMOD::DSPConnection ** connection
);

Parameters

dsp

A pointer to a pre-created DSP unit to be inserted at the head of the Channel DSP chain.

connection

Return Values

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.

Remarks

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.

Platforms Supported

Win32, Win64, Linux, Linux64, Macintosh, Xbox, Xbox360, PlayStation 2, GameCube, PlayStation Portable, PlayStation 3, Wii, Solaris

See Also

Channel::getDSPHead
System::createDSP
System::createDSPByType
System::createDSPByIndex
System::addDSP
ChannelGroup::addDSP
DSP::remove

Version 4.14.00 Built on Apr 4, 2008

[/quote:20pddcyn]

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?

  • You must to post comments
0
0

I noted the same here:

http://52.88.2.202/forum/viewtopic.php?t=9962

What I am currently doing is assuming it’s the same as the FMOD_DSP_GetOuput()’s new argument which is somewhat documented:

[quote:1b6xp36y]outputconnection

The connection between the 2 units. Optional. Specify 0 or NULL to ignore.
[/quote:1b6xp36y]

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]

~Brandon

  • You must to post comments
0
0

Phew… Thanks, I should have been more adventurous and tried it out for myself.

  • You must to post comments
0
0

The line should say

[code:2g7apdgx]
‘connection’ A pointer to the connection involved between the System DSP head and the specified dsp unit. Optional. Specify 0 or NULL to ignore.
[/code:2g7apdgx]

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.