Indicates whether the user can affect the audio on a device
#include <sys/asoundlib.h> int snd_pcm_get_handled_device(snd_pcm_t *pcm, int *handled)
BlackBerry 10.3.0
You can specify SND_PCM_CHANNEL_PLAYBACK to indicate that it's possible for the user to affect the sound of the speaker. Alternatively, you can specify SND_PCM_CHANNEL_CAPTURE to indicate that the microphone could be affected by the user. A value of zero indicates the user can't affect the audio to the microphone or speaker.
The quality of the audio can be affected because users could potentially block the speaker or microphone with their hand while using the device.
Zero if the function completed successfully, otherwise a non-zero value is returned. When the function completes successfully, the handled argument is populated with a result.
QNX Neutrino
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Read the Caveats |
This function is not thread safe if pcm (snd_pcm_t) is used across multiple threads.