diff options
author | XANTRONIX Development | 2022-03-14 00:44:07 -0400 |
---|---|---|
committer | XANTRONIX Development | 2022-03-14 00:44:07 -0400 |
commit | 492a30d46623155e77e6d5f93de62d1c021345b2 (patch) | |
tree | 77487b3e805711fb83da5d23d28f17a2717dd573 | |
parent | 37d07f3f657c879dc2b024ebbb981174ba6ab569 (diff) | |
download | xas-492a30d46623155e77e6d5f93de62d1c021345b2.tar.gz xas-492a30d46623155e77e6d5f93de62d1c021345b2.tar.bz2 xas-492a30d46623155e77e6d5f93de62d1c021345b2.zip |
Additional nomenclature rectitude
-rw-r--r-- | include/xas/bank.h | 2 | ||||
-rw-r--r-- | src/bank.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/xas/bank.h b/include/xas/bank.h index 77a2620..ab0c511 100644 --- a/include/xas/bank.h +++ b/include/xas/bank.h @@ -52,7 +52,7 @@ void xas_bank_entry_duration(xas_bank *bank, struct timeval *tv); ssize_t xas_bank_record(xas_bank *bank, - xas_audio_stream *input, + xas_audio_stream *source, size_t entry_index, size_t count); @@ -49,7 +49,7 @@ static inline xas_bank_entry *entry_by_index(xas_bank *bank, } ssize_t xas_bank_record(xas_bank *bank, - xas_audio_stream *input, + xas_audio_stream *source, size_t entry_index, size_t count) { xas_bank_entry *entry = entry_by_index(bank, entry_index); @@ -57,7 +57,7 @@ ssize_t xas_bank_record(xas_bank *bank, size_t left = count, index_o = 0; - if (!xas_audio_format_eq(bank->format, input->format)) { + if (!xas_audio_format_eq(bank->format, source->format)) { errno = EINVAL; goto error_invalid_format; @@ -73,7 +73,7 @@ ssize_t xas_bank_record(xas_bank *bank, void *buf; - if ((readlen = xas_audio_stream_read(input, &buf, amount)) < 0) { + if ((readlen = xas_audio_stream_read(source, &buf, amount)) < 0) { goto error_audio_stream_read; } else if (readlen == 0) { break; |