Middleware, development tools, realtime operating system
software and services for superior embedded design


Home
QNX Community Resources
QNX Documentation Library
MmAttachChannels

MmAttachChannels

QNX Software Systems
Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation
Technical Articles

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()