mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
dmix: simplify mix_areas()
The code for the three supported sample widths is almost the same, so it makes sense to merge the three cases.
This commit is contained in:
parent
79db4a6bfa
commit
a3fe1f7800
2 changed files with 52 additions and 86 deletions
|
|
@ -24,6 +24,11 @@
|
|||
#define DIRECT_IPC_SEMS 1
|
||||
#define DIRECT_IPC_SEM_CLIENT 0
|
||||
|
||||
typedef void (mix_areas_t)(unsigned int size,
|
||||
volatile void *dst, void *src,
|
||||
volatile signed int *sum, size_t dst_step,
|
||||
size_t src_step, size_t sum_step);
|
||||
|
||||
typedef void (mix_areas_16_t)(unsigned int size,
|
||||
volatile signed short *dst, signed short *src,
|
||||
volatile signed int *sum, size_t dst_step,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue