What is the difference between snd_pcm_delay and snd_pcm_status_get_delay in ALSA?

463 views Asked by At

In a simple test application both functions return the same value. What is the difference between snd_pcm_delay and snd_pcm_status_get_delay in ALSA?

1

There are 1 answers

0
CL. On BEST ANSWER

snd_pcm_status() returns multiple pieces of information; one of those is the delay.

snd_pcm_delay() is just a wrapper around these functions; it saves you from having to allocate the status container object.