mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-28 01:40:08 -05:00
dmix: add U8 support
Add support for direct mixing of U8 samples (for devices like some USB headsets or the Tux Droid).
This commit is contained in:
parent
a3fe1f7800
commit
6e6f4b9c93
4 changed files with 43 additions and 1 deletions
|
|
@ -44,6 +44,11 @@ typedef void (mix_areas_24_t)(unsigned int size,
|
|||
volatile signed int *sum, size_t dst_step,
|
||||
size_t src_step, size_t sum_step);
|
||||
|
||||
typedef void (mix_areas_u8_t)(unsigned int size,
|
||||
volatile unsigned char *dst, unsigned char *src,
|
||||
volatile signed int *sum, size_t dst_step,
|
||||
size_t src_step, size_t sum_step);
|
||||
|
||||
struct slave_params {
|
||||
snd_pcm_format_t format;
|
||||
int rate;
|
||||
|
|
@ -156,6 +161,7 @@ struct snd_pcm_direct {
|
|||
mix_areas_16_t *mix_areas_16;
|
||||
mix_areas_32_t *mix_areas_32;
|
||||
mix_areas_24_t *mix_areas_24;
|
||||
mix_areas_u8_t *mix_areas_u8;
|
||||
} dmix;
|
||||
struct {
|
||||
} dsnoop;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue