mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Added power management functions and defines.
This commit is contained in:
parent
23d8f9a0b0
commit
3c59c6b11d
19 changed files with 195 additions and 0 deletions
|
|
@ -222,6 +222,8 @@ typedef enum _snd_pcm_state {
|
|||
SND_PCM_STATE_DRAINING,
|
||||
/** Paused */
|
||||
SND_PCM_STATE_PAUSED,
|
||||
/** Hardware is suspended */
|
||||
SND_PCM_STATE_SUSPENDED,
|
||||
SND_PCM_STATE_LAST = SND_PCM_STATE_PAUSED,
|
||||
} snd_pcm_state_t;
|
||||
|
||||
|
|
@ -367,6 +369,7 @@ int snd_pcm_drain(snd_pcm_t *pcm);
|
|||
int snd_pcm_pause(snd_pcm_t *pcm, int enable);
|
||||
snd_pcm_state_t snd_pcm_state(snd_pcm_t *pcm);
|
||||
int snd_pcm_delay(snd_pcm_t *pcm, snd_pcm_sframes_t *delayp);
|
||||
int snd_pcm_resume(snd_pcm_t *pcm);
|
||||
snd_pcm_sframes_t snd_pcm_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames);
|
||||
snd_pcm_sframes_t snd_pcm_writei(snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size);
|
||||
snd_pcm_sframes_t snd_pcm_readi(snd_pcm_t *pcm, void *buffer, snd_pcm_uframes_t size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue