Hi,
is
the ALSA-Lib-API thread-safe concerning the following scenario:
in
thread 1 the audio-processing takes place via snd_pcm_avail_update(),
snd_pcm_begin(), snd_pcm_commit(). In thread 2 I call the functions:
snd_pcm_hwsync(), snd_pcm_avail_update() to get the actual delay
via
bufferframes -
snd_pcm_avail_update(). Should I lock these calls or
should I use
instead snd_pcm_avail() in thread 2 ?
Is there any
difference concerning thread-safety between the hw: layer or the plug: layer
?
Confused,
Ciao,
Daniel.