commit d6a6b00aa4334b461c1a09c27b6c681eaac8da8a
Author: Martin Schreiber <mse00000@gmail.com>
Date:   Sat Mar 10 06:55:58 2018 +0100

    * Alsa: fixed sample_size calculation, multiply with channel count.

diff --git src/alsa.c src/alsa.c
index 34e39be..6af1941 100644
--- a/src/alsa.c
+++ b/src/alsa.c
@@ -53,7 +53,7 @@ alsa_object_open(struct audio_object *object,
 		return -EEXIST;
 
 	snd_pcm_format_t pcm_format;
-#define FORMAT(srcfmt, dstfmt, size) case srcfmt: pcm_format = dstfmt; self->sample_size = size; break;
+#define FORMAT(srcfmt, dstfmt, size) case srcfmt: pcm_format = dstfmt; self->sample_size = size*channels; break;
 	switch (format)
 	{
 	FORMAT(AUDIO_OBJECT_FORMAT_ALAW,      SND_PCM_FORMAT_A_LAW, 1)
