From: Jaroslav Kysela Date: Wed, 31 Mar 2004 14:16:31 +0000 (+0000) Subject: Added 24-bit copy X-Git-Tag: v1.0.4~3 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=72e2f8046ef116d2917581717e545cdb07c562dc;p=alsa-lib.git Added 24-bit copy --- diff --git a/src/pcm/pcm.c b/src/pcm/pcm.c index ecdac728..b53eac37 100644 --- a/src/pcm/pcm.c +++ b/src/pcm/pcm.c @@ -2372,6 +2372,15 @@ int snd_pcm_area_copy(const snd_pcm_channel_area_t *dst_area, snd_pcm_uframes_t } break; } + case 24: + while (samples-- > 0) { + *(dst + 0) = *(src + 0); + *(dst + 1) = *(src + 1); + *(dst + 2) = *(src + 2); + src += src_step; + dst += dst_step; + } + break; case 32: { while (samples-- > 0) { *(u_int32_t*)dst = *(const u_int32_t*)src;