snd_pcm_link()

Link two PCM streams together

Synopsis:

#include <sys/asoundlib.h>

int snd_pcm_link( snd_pcm_t *pcm1,
                  snd_pcm_t *pcm2 );

Arguments:

pcm1, pcm2
The handles for the PCM devices, which you must have opened by calling snd_pcm_open_name(), snd_pcm_open(), or snd_pcm_open_preferred().

Library:

libasound.so

Use the -l asound option to qcc to link against this library.

Description:

The snd_pcm_link() function links two PCM streams together such that they always play at the same time. Starting one starts the other, and stopping one stops the other.

Returns:

EOK on success, or a positive errno value if an error occurred.

Classification:

QNX Neutrino

Safety:  
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Read the Caveats

Caveats:

This function is not thread safe if pcm1 or pcm2(snd_pcm_t) are used across multiple threads.