GetObjectIO Description

Additionally, developers must implement a function for each audio object that describes the audio and control I/O, based on what they configured in the design tool. This function interacts with the object through the dll described above. The code below shows an example of this function implemented for the merger object that always has zero controls and only number of audio inputs is configurable.  The number of outputs is dictated by the number of audio inputs as seen below.

xAF_Error CMergerToolbox::getObjectIo(ioObjectConfigOutput* configOut)
{
configOut->numAudioOut = m_NumAudioIn + 1;
configOut->numControlIn = 0;
configOut->numControlOut = 0;

return xAF_SUCCESS;
}

This method may rely on the following member variables depending on the object mask.

  • m_NumAudioIn
  • m_NumAudioOut
  • m_NumElements
  • m_Mode
  • m_AdditionalSFDConfig

configOut is made up of the settings returned by the getObjectIo() function and is composed of:

  • numAudioInputs
  • numAudioOutputs
  • numControlIn
  • numControlOut

_________________

Rate this post!