rhdunn / pcaudiolib

Portable C Audio Library
GNU General Public License v3.0
10 stars 2 forks source link

Alsa: wrong sample_size if multi channel #11

Closed mse2 closed 6 years ago

mse2 commented 6 years ago

#define FORMAT(srcfmt, dstfmt, size) case srcfmt: pcm_format = dstfmt; self->sample_size = size; break; probably should be #define FORMAT(srcfmt, dstfmt, size) case srcfmt: pcm_format = dstfmt; self->sample_size = size*channels; break; A patched version is here: https://gitlab.com/mseide-msegui/pcaudiolib

rhdunn commented 6 years ago

I have merged the fix for this. Thanks.