enum snd_pcm_state_t

Overview

PCM state Moreā€¦

#include <pcm.h>

enum snd_pcm_state_t {
    SND_PCM_STATE_OPEN         = 0,
    SND_PCM_STATE_SETUP,
    SND_PCM_STATE_PREPARED,
    SND_PCM_STATE_RUNNING,
    SND_PCM_STATE_XRUN,
    SND_PCM_STATE_DRAINING,
    SND_PCM_STATE_PAUSED,
    SND_PCM_STATE_SUSPENDED,
    SND_PCM_STATE_DISCONNECTED,
    SND_PCM_STATE_LAST         = SND_PCM_STATE_DISCONNECTED,
};

Detailed Documentation

PCM state

Enum Values

SND_PCM_STATE_OPEN

Open

SND_PCM_STATE_SETUP

Setup installed

SND_PCM_STATE_PREPARED

Ready to start

SND_PCM_STATE_RUNNING

Running

SND_PCM_STATE_XRUN

Stopped: underrun (playback) or overrun (capture) detected

SND_PCM_STATE_DRAINING

Draining: running (playback) or stopped (capture)

SND_PCM_STATE_PAUSED

Paused

SND_PCM_STATE_SUSPENDED

Hardware is suspended

SND_PCM_STATE_DISCONNECTED

Hardware is disconnected