Add snd_pcm_ioplug_set_state() function

Added an exported function snd_pcm_ioplug_set_state() to change
the PCM state of ioplug from the plugin side (e.g. from another
thread).
This commit is contained in:
Takashi Iwai 2007-12-14 15:19:03 +01:00
parent 86456d21e0
commit ce64f433a6
2 changed files with 21 additions and 0 deletions

View file

@ -208,6 +208,9 @@ void snd_pcm_ioplug_params_reset(snd_pcm_ioplug_t *io);
int snd_pcm_ioplug_set_param_minmax(snd_pcm_ioplug_t *io, int type, unsigned int min, unsigned int max);
int snd_pcm_ioplug_set_param_list(snd_pcm_ioplug_t *io, int type, unsigned int num_list, const unsigned int *list);
/* change PCM status */
int snd_pcm_ioplug_set_state(snd_pcm_ioplug_t *ioplug, snd_pcm_state_t state);
/** \} */
#endif /* __ALSA_PCM_IOPLUG_H */