Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_pcm_subchn_is_channel.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_pcm_subchn_is_channel.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_pcm_subchn_is_channel.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_pcm_subchn_is_channel.html on line 8
Check if a channel is a subchannel of a PCM device
#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 );
- 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:
- ADO_PCM_CHANNEL_CAPTURE
- ADO_PCM_CHANNEL_PLAYBACK
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.
True if subchn is a subchannel
of the PCM device pcm channel of type type.
QNX Neutrino
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
ado_pcm_hw_t
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_pcm_subchn_is_channel.html on line 129
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_pcm_subchn_is_channel.html on line 129