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

ado_pcm_subchn_is_channel()

Check if a channel is a subchannel of a PCM device

Synopsis:

#include <audio_driver.h>

int32_t ado_pcm_subchn_is_channel
  ( ado_pcm_subchn_t *subchn,
    ado_pcm_t *pcm,
    enum pcm_chn_type chn_type );

Arguments:

subchn
A pointer to the ado_pcm_subchn_t structure for the subchannel.
pcm
A pointer to the ado_pcm_t structure created for the PCM device when you called ado_pcm_create().
chn_type
The channel type; one of:

Description:

The ado_pcm_subchn_is_channel() function is a convenience function for checking if the subchn is a subchannel of the a PCM device. This function is necessary because the subchn structure is a opaque internal structure. This function is handy in the PCM capabilities() callback (see ado_pcm_hw_t) because all the devices can share the same callback, which uses this function to tell them apart.

Returns:

True if subchn is a subchannel of the PCM device pcm channel of type type.

Classification:

QNX Neutrino

Safety:
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes

See also:

ado_pcm_hw_t