snd_pcm_unlink()

Detach a PCM stream from a link group

Synopsis:

#include <sys/asoundlib.h>

int snd_pcm_unlink( snd_pcm_t *pcm );

Arguments:

pcm
The handle for the PCM device, 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 with qcc to link against this library.

Description:

The snd_pcm_unlink() function detaches a PCM stream from a link group. After this point, starting and stopping this PCM stream affects the stream only, not any other streams.

Returns:

0 on success, or -1 if an error occurred (errno is set).

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 pcm(snd_pcm_t) is used across multiple threads.