From 72a0ce71285034853c1720b738db348fdcec5228 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Tue, 10 Nov 2020 20:33:29 -0800 Subject: *: add _us suffixes to {frame,period}time names Make the names reflect their units of microseconds --- src/rmd_capture_audio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rmd_capture_audio.c') diff --git a/src/rmd_capture_audio.c b/src/rmd_capture_audio.c index bfba547..f9f2ddb 100644 --- a/src/rmd_capture_audio.c +++ b/src/rmd_capture_audio.c @@ -51,7 +51,7 @@ void *rmdCaptureAudio(ProgData *pdata) rmdThreadsSetName("rmdCaptureAudio"); //start capturing only after first frame is taken - nanosleep(&(struct timespec){ .tv_nsec = pdata->frametime * 1000 }, NULL); + nanosleep(&(struct timespec){ .tv_nsec = pdata->frametime_us * 1000 }, NULL); while (pdata->running) { int sret = 0; @@ -154,7 +154,7 @@ void *rmdCaptureAudio(ProgData *pdata) * should get accounted for too FIXME TODO */ pthread_mutex_lock(&pdata->avd_mutex); - pdata->avd -= pdata->periodtime; + pdata->avd -= pdata->periodtime_us; pthread_mutex_unlock(&pdata->avd_mutex); //queue the new buffer -- cgit v1.2.1