See the PCM (digital audio) interface page for more details.
#define snd_pcm_status_alloca |
( |
|
ptr | ) |
|
copy one snd_pcm_status_t to another
- Parameters
-
dst | pointer to destination |
src | pointer to source |
frees a previously allocated snd_pcm_status_t
- Parameters
-
obj | pointer to object to free |
Get "now" hi-res audio timestamp from a PCM status container.
- Parameters
-
Get number of frames available from a PCM status container (see snd_pcm_avail_update)
- Returns
- Number of frames ready to be read/written
Get maximum number of frames available from a PCM status container after last snd_pcm_status call.
- Returns
- Maximum number of frames ready to be read/written
Get delay from a PCM status container (see snd_pcm_delay)
- Returns
- Delay in frames
Delay is distance between current application frame position and sound frame position. It's positive and less than buffer size in normal situation, negative on playback underrun and greater than buffer size on capture overrun.
Get "now" hi-res timestamp from a PCM status container.
- Parameters
-
Get count of ADC overrange detections since last call.
- Returns
- Count of ADC overrange detections
Get state from a PCM status container (see snd_pcm_state)
- Parameters
-
- Returns
- PCM state
Get trigger hi-res timestamp from a PCM status container.
- Parameters
-
Trigger means a PCM state transition (from stopped to running or versa vice). It applies also to pause and suspend. In other words, timestamp contains time when stream started or when it was stopped.
Get trigger timestamp from a PCM status container.
- Parameters
-
Trigger means a PCM state transition (from stopped to running or versa vice). It applies also to pause and suspend. In other words, timestamp contains time when stream started or when it was stopped.
- Examples:
- /test/latency.c.
Get "now" timestamp from a PCM status container.
- Parameters
-
allocate an invalid snd_pcm_status_t using standard malloc
- Parameters
-
- Returns
- 0 on success otherwise negative error code
size_t snd_pcm_status_sizeof |
( |
void |
| ) |
|