summaryrefslogtreecommitdiff
path: root/src/rmd_capture_audio.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-11-10 20:33:29 -0800
committerVito Caputo <vcaputo@pengaru.com>2020-11-11 23:55:52 -0800
commit72a0ce71285034853c1720b738db348fdcec5228 (patch)
treea0a368319fad24d6757d7af458b8884f07c5f0f8 /src/rmd_capture_audio.c
parent371ad8abf4494837a77ab6c443c0d534652e3dbd (diff)
*: add _us suffixes to {frame,period}time names
Make the names reflect their units of microseconds
Diffstat (limited to 'src/rmd_capture_audio.c')
-rw-r--r--src/rmd_capture_audio.c4
1 files changed, 2 insertions, 2 deletions
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
© All Rights Reserved