What is the difference between snd_pcm_delay and snd_pcm_status_get_delay in ALSA?

493 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 best solutions below

0
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.