summaryrefslogtreecommitdiff
path: root/src/rmd_opendev.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_opendev.c
parent371ad8abf4494837a77ab6c443c0d534652e3dbd (diff)
*: add _us suffixes to {frame,period}time names
Make the names reflect their units of microseconds
Diffstat (limited to 'src/rmd_opendev.c')
-rw-r--r--src/rmd_opendev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rmd_opendev.c b/src/rmd_opendev.c
index 3bf9474..c8460d9 100644
--- a/src/rmd_opendev.c
+++ b/src/rmd_opendev.c
@@ -47,7 +47,7 @@ snd_pcm_t *rmdOpenDev( const char *pcm_dev,
unsigned int *frequency,
snd_pcm_uframes_t *buffsize,
snd_pcm_uframes_t *periodsize,
- unsigned int *periodtime,
+ unsigned int *periodtime_us,
int *hard_pause)
{
snd_pcm_t *mhandle;
@@ -126,8 +126,8 @@ snd_pcm_t *rmdOpenDev( const char *pcm_dev,
if (periodsize != NULL)
snd_pcm_hw_params_get_period_size(hwparams, periodsize, 0);
- if (periodtime != NULL)
- snd_pcm_hw_params_get_period_time(hwparams, periodtime, 0);
+ if (periodtime_us != NULL)
+ snd_pcm_hw_params_get_period_time(hwparams, periodtime_us, 0);
fprintf(stderr,
"Recording on device %s is set to:\n%d channels at %dHz\n",
© All Rights Reserved