|
enum | snd_pcm_hook_type_t { SND_PCM_HOOK_TYPE_HW_PARAMS = 0
, SND_PCM_HOOK_TYPE_HW_FREE
, SND_PCM_HOOK_TYPE_CLOSE
, SND_PCM_HOOK_TYPE_LAST = SND_PCM_HOOK_TYPE_CLOSE
} |
|
See the PCM (digital audio) interface page for more details.
◆ snd_pcm_hook_func_t
PCM hook callback function
◆ snd_pcm_hook_t
◆ snd_pcm_hook_type_t
◆ snd_pcm_hook_add()
Add a PCM hook at end of hooks chain.
- Parameters
-
hookp | Returned PCM hook handle |
pcm | PCM handle |
type | PCM hook type |
func | PCM hook callback function |
private_data | PCM hook private data |
- Returns
- 0 on success otherwise a negative error code
Warning: an hook callback function cannot remove an hook of the same type different from itself
◆ snd_pcm_hook_get_pcm()
Get PCM handle for a PCM hook.
- Parameters
-
- Returns
- PCM handle
◆ snd_pcm_hook_get_private()
Get callback function private data for a PCM hook.
- Parameters
-
- Returns
- callback function private data
◆ snd_pcm_hook_remove()
Remove a PCM hook.
- Parameters
-
- Returns
- 0 on success otherwise a negative error code
Warning: an hook callback cannot remove an hook of the same type different from itself
◆ snd_pcm_hook_set_private()
void snd_pcm_hook_set_private |
( |
snd_pcm_hook_t * |
hook, |
|
|
void * |
private_data |
|
) |
| |
Set callback function private data for a PCM hook.
- Parameters
-
hook | PCM hook handle |
private_data | The private data value |