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:
Clemens Ladisch 2007-12-10 12:35:08 +01:00
parent a3fe1f7800
commit 6e6f4b9c93
4 changed files with 43 additions and 1 deletions

View file

@ -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;