memops: Use right-aligned float to S24LE conversion
commit831163e51640aad2fbda7710c44bc406f167df85
authorTimo Wischer <twischer@de.adit-jv.com>
Fri, 16 Nov 2018 08:26:05 +0000 (16 09:26 +0100)
committerFilipe Coelho <falktx@falktx.com>
Wed, 16 Jan 2019 23:56:39 +0000 (17 00:56 +0100)
treeb5fd04a9c51d287e076a51548c0fa00ddb3a03fc
parent04bdd8a6358ead60b4da88d1689e926434fc160a
memops: Use right-aligned float to S24LE 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