diff options
author | XANTRONIX Development | 2022-03-14 00:48:15 -0400 |
---|---|---|
committer | XANTRONIX Development | 2022-03-14 00:48:15 -0400 |
commit | 267b9c784eee35ad345d316b0f9ba7c405adec64 (patch) | |
tree | 462987c133a912f387ccdf77ecd6161eb6f47600 | |
parent | 492a30d46623155e77e6d5f93de62d1c021345b2 (diff) | |
download | xas-267b9c784eee35ad345d316b0f9ba7c405adec64.tar.gz xas-267b9c784eee35ad345d316b0f9ba7c405adec64.tar.bz2 xas-267b9c784eee35ad345d316b0f9ba7c405adec64.zip |
Rename 'count' argument to 'entry_size'
-rw-r--r-- | include/xas/bank.h | 2 | ||||
-rw-r--r-- | src/bank.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/xas/bank.h b/include/xas/bank.h index ab0c511..3ff5994 100644 --- a/include/xas/bank.h +++ b/include/xas/bank.h @@ -54,7 +54,7 @@ void xas_bank_entry_duration(xas_bank *bank, ssize_t xas_bank_record(xas_bank *bank, xas_audio_stream *source, size_t entry_index, - size_t count); + size_t entry_size); ssize_t xas_bank_load_file(xas_bank *bank, size_t entry_index, @@ -51,10 +51,10 @@ static inline xas_bank_entry *entry_by_index(xas_bank *bank, ssize_t xas_bank_record(xas_bank *bank, xas_audio_stream *source, size_t entry_index, - size_t count) { + size_t entry_size) { xas_bank_entry *entry = entry_by_index(bank, entry_index); - size_t left = count, + size_t left = entry_size, index_o = 0; if (!xas_audio_format_eq(bank->format, source->format)) { @@ -63,13 +63,13 @@ ssize_t xas_bank_record(xas_bank *bank, goto error_invalid_format; } - if (count > bank->entry_size) { - count = bank->entry_size; + if (entry_size > bank->entry_size) { + entry_size = bank->entry_size; } while (left) { ssize_t readlen, - amount = left > count? count: left; + amount = left > entry_size? entry_size: left; void *buf; |