Enumerations |
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
} |
Detailed Description
See the PCM (digital audio) interface page for more details.
Typedef Documentation
PCM hook callback function
Enumeration Type Documentation
Function Documentation
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
Get PCM handle for a PCM hook.
- Parameters:
-
- Returns:
- PCM handle
Get callback function private data for a PCM hook.
- Parameters:
-
- Returns:
- callback function private data
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
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 |