summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bank.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bank.c b/src/bank.c
index f9f540d..735f479 100644
--- a/src/bank.c
+++ b/src/bank.c
@@ -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;