Bind an audioman handle to a PCM stream
#include <sys/asoundlib.h>
int snd_pcm_set_audioman_handle( snd_pcm_t *handle,
                                 unsigned int audioman_handle );
The snd_pcm_set_audioman_handle() function binds an audioman handle to a PCM stream. Binding an audioman handle to a PCM stream results in the PCM stream's conditionally ducking behind other streams, depending on the type of other stream playing. Rebinding a PCM stream to a new handle is permitted; doing so automatically unbinds the old handle. Binding the same audioman handle to two PCM streams isn't permitted.
EOK on success, a negative errno upon failure. The errno values are available in the errno.h file.
QNX Neutrino
| Safety: | |
|---|---|
| Cancellation point | No | 
| Interrupt handler | No | 
| Signal handler | Yes | 
| Thread | Read the Caveats | 
This function is not thread safe if handle(snd_pcm_t) is used across multiple threads.