memops: Use right-aligned S24LE to float conversion
commite75325431353919b1917d96a047a2a195ce01c00
authorTimo Wischer <twischer@de.adit-jv.com>
Fri, 16 Nov 2018 10:42:18 +0000 (16 11:42 +0100)
committerFilipe Coelho <falktx@falktx.com>
Wed, 16 Jan 2019 23:56:39 +0000 (17 00:56 +0100)
treee3cda95650c3f9230edd2beed1077fd52930fc8d
parent831163e51640aad2fbda7710c44bc406f167df85
memops: Use right-aligned S24LE to float conversion

ALSA expects right-aligned samples (0x00******) as mentioned in the
source code for SND_PCM_FORMAT_S24_LE:
Signed 24 bit Little Endian using low three bytes in 32-bit word
See http://git.alsa-project.org/?p=alsa-
lib.git;a=blob;f=include/pcm.h;h=5b0782315585de1d5ab82c9f2036b62c168f5a48;hb=HEAD#l140

Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
common/memops.c