mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04: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
|
|
@ -176,6 +176,10 @@ static void mix_areas(snd_pcm_direct_t *dmix,
|
|||
sample_size = 3;
|
||||
do_mix_areas = (mix_areas_t *)dmix->u.dmix.mix_areas_24;
|
||||
break;
|
||||
case SND_PCM_FORMAT_U8:
|
||||
sample_size = 1;
|
||||
do_mix_areas = (mix_areas_t *)dmix->u.dmix.mix_areas_u8;
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue