summaryrefslogtreecommitdiff
path: root/src/rmd_capture_audio.c
diff options
context:
space:
mode:
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