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_opendev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/rmd_opendev.c') 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", -- cgit v1.2.3