diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-07-13 00:50:22 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-07-13 03:31:15 -0700 |
commit | 5bf7e838d38debacd4ad624f1f3024b26e83f9eb (patch) | |
tree | 8add4226ff90096d3ff91f936b74c372d698c06d /src/rmd_capture_sound.c | |
parent | cbce2f4841a9281d10e6d01ee58cfa910965a82c (diff) |
*: more rmdThreadsSetName() callers
Name the timer and sound capture threads as well, and fixup the
rmd{Encode,Cache}Sounds names -> rmd{Encode,Cache}Sound
Diffstat (limited to 'src/rmd_capture_sound.c')
-rw-r--r-- | src/rmd_capture_sound.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rmd_capture_sound.c b/src/rmd_capture_sound.c index 76ccd4b..0c95afa 100644 --- a/src/rmd_capture_sound.c +++ b/src/rmd_capture_sound.c @@ -29,6 +29,7 @@ #include "rmd_jack.h" #include "rmd_opendev.h" +#include "rmd_threads.h" #include "rmd_types.h" #include <pthread.h> @@ -46,6 +47,8 @@ void *rmdCaptureSound(ProgData *pdata) { #ifdef HAVE_LIBASOUND int frames = pdata->periodsize; #endif + rmdThreadsSetName("rmdCaptureSound"); + //start capturing only after first frame is taken nanosleep(&(struct timespec){ .tv_nsec = pdata->frametime * 1000 }, NULL); |