diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-11-10 20:33:29 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-11-11 23:55:52 -0800 |
commit | 72a0ce71285034853c1720b738db348fdcec5228 (patch) | |
tree | a0a368319fad24d6757d7af458b8884f07c5f0f8 /src/rmd_initialize_data.c | |
parent | 371ad8abf4494837a77ab6c443c0d534652e3dbd (diff) |
*: add _us suffixes to {frame,period}time names
Make the names reflect their units of microseconds
Diffstat (limited to 'src/rmd_initialize_data.c')
-rw-r--r-- | src/rmd_initialize_data.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rmd_initialize_data.c b/src/rmd_initialize_data.c index 6f2af89..19a91ee 100644 --- a/src/rmd_initialize_data.c +++ b/src/rmd_initialize_data.c @@ -112,7 +112,7 @@ int rmdInitializeData(ProgData *pdata, EncData *enc_data, CacheData *cache_data) &pdata->args.frequency, &pdata->args.buffsize, &pdata->periodsize, - &pdata->periodtime, + &pdata->periodtime_us, &pdata->hard_pause); pdata->sound_framesize=(snd_pcm_format_width(SND_PCM_FORMAT_S16_LE) / 8 * @@ -124,7 +124,7 @@ int rmdInitializeData(ProgData *pdata, EncData *enc_data, CacheData *cache_data) pdata->args.channels, pdata->args.frequency); - pdata->periodtime = (1000000 * pdata->args.buffsize) / + pdata->periodtime_us = (1000000 * pdata->args.buffsize) / ((pdata->args.channels<<1) * pdata->args.frequency); //when using OSS periodsize serves as an alias of buffsize pdata->periodsize = pdata->args.buffsize; @@ -154,7 +154,7 @@ int rmdInitializeData(ProgData *pdata, EncData *enc_data, CacheData *cache_data) pdata->periodsize = pdata->args.buffsize; pdata->args.frequency = pdata->jdata->frequency; pdata->args.channels = pdata->jdata->nports; - pdata->periodtime = 1000000 * pdata->args.buffsize / + pdata->periodtime_us = 1000000 * pdata->args.buffsize / pdata->args.frequency; pdata->sound_framesize = sizeof(jack_default_audio_sample_t) * pdata->jdata->nports; @@ -183,7 +183,7 @@ int rmdInitializeData(ProgData *pdata, EncData *enc_data, CacheData *cache_data) vblocks = malloc((pdata->enc_data->yuv.y_width / Y_UNIT_WIDTH) * (pdata->enc_data->yuv.y_height / Y_UNIT_WIDTH)); - pdata->frametime = 1000000 / pdata->args.fps; + pdata->frametime_us = 1000000 / pdata->args.fps; return 0; |