Lines Matching refs:amount
117 size_t len, amount;
134 amount = MIN(len, (AUDIO_BUFFER_SIZE - s->output_index));
135 memcpy(buf, &s->buffer[s->output_index], amount);
136 s->output_index += amount;
139 memcpy(buf + amount, &s->buffer[s->output_index], len - amount);
140 s->output_index += len-amount;
158 size_t len, amount;
172 amount = MIN(len, (AUDIO_BUFFER_SIZE - s->input_index));
173 memcpy(&s->buffer[s->input_index], buf, amount);
174 s->input_index += amount;
177 memcpy(&s->buffer[s->input_index], buf + amount, len - amount);
178 s->input_index += len - amount;
315 int amount;
319 amount = MIN(len, (AUDIO_BUFFER_SIZE - s->input_index));
320 memcpy(&s->buffer[s->input_index], buf, amount);
321 s->input_index += amount;
324 memcpy(&s->buffer[s->input_index], buf + amount, len - amount);
325 s->input_index += len - amount;
382 size_t len, amount;
398 amount = MIN(len, (AUDIO_BUFFER_SIZE - s->output_index));
399 memcpy(buf, &s->buffer[s->output_index], amount);
400 s->output_index += amount;
403 memcpy(buf + amount, &s->buffer[s->output_index], len - amount);
404 s->output_index += len-amount;