snd_pcm_playback_pause

Name

snd_pcm_playback_pause -- pause the playback direction

Synopsis

int snd_pcm_playback_pause(snd_pcm_t *handle, int enable);

Description

Turn on or off the playback pause state. Only some PCM subdevices supports this feature which is indicated by SND_PCM_CHNINFO_PAUSE. Function returns zero if successful, otherwise it returns an error code.

If the operation was successful (zero is returned), then the driver state is changed to SND_PCM_STATUS_PAUSE or SND_PCM_STATUS_RUNNING according to the enable value.