Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

MmAttachChannels()

Attach two multimedia channels

Synopsis:

int32_t MmAttachChannels(MmChannel_t *oc,
                         MmChannel_t *ic);

Arguments:

oc
A pointer to the output channel you want to connect.
ic
A pointer to the input channel you want to connect.

Library:

mmedia

Description:

This function attaches the output channel oc to the input channel ic. If the channels are buffered, this function handles negotiating formats between channels.

Returns:

0
Success.
-1
An error occurred.

Examples:

  // assuming channel1 is an output channel acquired from one
  // filter, and channel2 is an input channel acquired from
  // another filter:

  if (MmAttachChannels(channel1,channels)==0)
  {
    // we've attached the channels
  }

Classification:

Neutrino

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

MmAcquireInputChannel(), MmAcquireOutputChannel(), MmChannel_t, MmReleaseChannel()