summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rmd_jack.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rmd_jack.c b/src/rmd_jack.c
index 4168a35..77e500e 100644
--- a/src/rmd_jack.c
+++ b/src/rmd_jack.c
@@ -62,6 +62,9 @@ static int rmdJackCapture(jack_nframes_t nframes, void *jdata_t)
for (int i = 0; i < jdata->nports; i++)
jdata->portbuf[i] = jack_port_get_buffer(jdata->ports[i], nframes);
+ pthread_mutex_lock(&jdata->pdata->avd_mutex);
+ jdata->pdata->avd -= jdata->pdata->periodtime_us;
+ pthread_mutex_unlock(&jdata->pdata->avd_mutex);
pthread_mutex_lock(jdata->sound_buffer_mutex);
//vorbis analysis buffer wants uninterleaved data
© All Rights Reserved