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 /src | |
parent | 492a30d46623155e77e6d5f93de62d1c021345b2 (diff) | |
download | xas-267b9c784eee35ad345d316b0f9ba7c405adec64.tar.gz xas-267b9c784eee35ad345d316b0f9ba7c405adec64.tar.bz2 xas-267b9c784eee35ad345d316b0f9ba7c405adec64.zip |
Rename 'count' argument to 'entry_size'
Diffstat (limited to 'src')
-rw-r--r-- | src/bank.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; |