pa_assert_fp(o_index * fz < pa_memblock_get_length(output->memblock));
- /* Directly assign some common sample sizes, use memcpy as fallback */
- if (r->w_sz == 2) {
- for (unsigned c = 0; c < r->o_ss.channels; c++)
- ((uint16_t *) dst)[o_index+c] = ((uint16_t *) src)[i_index+c];
- } else if (r->w_sz == 4) {
- for (unsigned c = 0; c < r->o_ss.channels; c++)
- ((uint32_t *) dst)[o_index+c] = ((uint32_t *) src)[i_index+c];
- } else {
- memcpy((uint8_t *) dst + fz * o_index, (uint8_t *) src + fz * i_index, (int) fz);
- }
+ memcpy((uint8_t*) dst + fz * o_index, (uint8_t*) src + fz * i_index, (int) fz);
}
pa_memblock_release(input->memblock);